home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 26 code / Truffles-Display Mgr.sit / Truffles - Display Mgr. / Sprocket / Release Notes < prev    next >
MacBinary  |  1995-01-25  |  16.4 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Jan 24 19:23:56 1995, modified Tue Jan 24 19:23:56 1995, creator 'MMCC', type ASCII, 15940 bytes "Release Notes" , at 0x3ec4 618 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 52 65 6c 65 61 73 | 65 20 4e 6f 74 65 73 00 |..Releas|e Notes.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 3e 44 00 | 00 02 6a ab 4b 4a 9c ab |.....>D.|..j.KJ..|
|00000060| 4b 4a 9c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |KJ......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 5a df 00 00 |........|....Z...|
|00000080| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000090| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000000a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000000b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000000c0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000000d0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000000e0| 23 0d 23 0d 23 09 44 61 | 76 65 d5 73 20 52 65 6c |#.#.#.Da|ve.s Rel|
|000000f0| 65 61 73 65 20 4e 6f 74 | 65 73 20 66 6f 72 20 53 |ease Not|es for S|
|00000100| 70 72 6f 63 6b 65 74 20 | 31 2e 30 64 32 33 20 28 |procket |1.0d23 (|
|00000110| 31 2f 32 34 2f 39 35 29 | 0d 23 09 28 49 66 20 79 |1/24/95)|.#.(If y|
|00000120| 6f 75 20 6a 75 73 74 20 | 77 61 6e 74 20 74 6f 20 |ou just |want to |
|00000130| 73 65 65 20 74 68 65 20 | 63 68 61 6e 67 65 20 68 |see the |change h|
|00000140| 69 73 74 6f 72 79 20 73 | 6b 69 70 20 61 68 65 61 |istory s|kip ahea|
|00000150| 64 20 74 6f 20 43 48 41 | 4e 47 45 20 48 49 53 54 |d to CHA|NGE HIST|
|00000160| 4f 52 59 29 0d 23 0d 0d | 54 68 72 65 61 64 73 20 |ORY).#..|Threads |
|00000170| 61 6e 64 20 d2 54 68 65 | 20 46 75 74 75 72 65 73 |and .The| Futures|
|00000180| d3 0d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |..======|========|
|00000190| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0d 0d 57 65 6c |========|===..Wel|
|000001a0| 6c 2c 20 74 68 69 73 20 | 72 65 6c 65 61 73 65 20 |l, this |release |
|000001b0| 6d 61 72 6b 73 20 74 68 | 65 20 66 69 72 73 74 20 |marks th|e first |
|000001c0| 6f 66 66 69 63 69 61 6c | 20 72 6f 6c 6c 2d 69 6e |official| roll-in|
|000001d0| 20 6f 66 20 53 74 65 76 | 65 20 53 69 73 61 6b d5 | of Stev|e Sisak.|
|000001e0| 73 20 41 45 54 68 72 65 | 61 64 73 20 61 6e 64 20 |s AEThre|ads and |
|000001f0| 46 75 74 75 72 65 73 0d | 77 6f 72 6b 2e 20 57 68 |Futures.|work. Wh|
|00000200| 69 6c 65 20 74 68 69 73 | 20 73 74 75 66 66 20 69 |ile this| stuff i|
|00000210| 73 20 70 72 65 74 74 79 | 20 63 6f 6f 6c 2c 20 74 |s pretty| cool, t|
|00000220| 68 65 72 65 20 61 72 65 | 20 61 20 63 6f 75 70 6c |here are| a coupl|
|00000230| 65 20 6f 66 20 74 68 69 | 6e 67 73 20 74 6f 20 77 |e of thi|ngs to w|
|00000240| 6f 72 72 79 20 61 62 6f | 75 74 3a 0d 0d 31 29 20 |orry abo|ut:..1) |
|00000250| 49 66 20 79 6f 75 20 61 | 72 65 20 75 73 69 6e 67 |If you a|re using|
|00000260| 20 74 68 65 20 4f 62 6a | 65 63 74 53 75 70 70 6f | the Obj|ectSuppo|
|00000270| 72 74 4c 69 62 20 28 65 | 2e 67 2e 2c 20 41 45 52 |rtLib (e|.g., AER|
|00000280| 65 73 6f 6c 76 65 29 20 | 69 6e 20 79 6f 75 72 20 |esolve) |in your |
|00000290| 41 70 70 6c 65 45 76 65 | 6e 74 20 68 61 6e 64 6c |AppleEve|nt handl|
|000002a0| 65 72 73 2c 20 62 65 20 | 61 77 61 72 65 0d 74 68 |ers, be |aware.th|
|000002b0| 61 74 20 6d 75 63 68 20 | 6f 66 20 74 68 65 20 41 |at much |of the A|
|000002c0| 70 70 6c 65 45 76 65 6e | 74 20 72 65 67 69 73 74 |ppleEven|t regist|
|000002d0| 72 79 20 61 73 73 75 6d | 65 73 20 6f 6e 6c 79 20 |ry assum|es only |
|000002e0| 61 20 73 69 6e 67 6c 65 | 20 61 70 70 6c 69 63 61 |a single| applica|
|000002f0| 74 69 6f 6e 20 74 68 72 | 65 61 64 2e 20 57 68 61 |tion thr|ead. Wha|
|00000300| 74 20 64 6f 20 49 20 6d | 65 61 6e 0d 62 79 20 74 |t do I m|ean.by t|
|00000310| 68 69 73 3f 20 20 57 65 | 6c 6c 2c 20 68 6f 77 d5 |his? We|ll, how.|
|00000320| 73 20 74 68 69 73 3a 20 | 57 68 61 74 20 64 6f 65 |s this: |What doe|
|00000330| 73 20 d2 77 69 6e 64 6f | 77 20 31 d3 20 6d 65 61 |s .windo|w 1. mea|
|00000340| 6e 20 69 6e 20 61 20 6d | 75 6c 74 69 74 68 72 65 |n in a m|ultithre|
|00000350| 61 64 65 64 20 77 6f 72 | 6c 64 20 77 68 65 72 65 |aded wor|ld where|
|00000360| 20 79 6f 75 72 0d 61 70 | 70 6c 69 63 61 74 69 6f | your.ap|plicatio|
|00000370| 6e 20 6d 69 67 68 74 20 | 62 65 20 63 72 65 61 74 |n might |be creat|
|00000380| 69 6e 67 20 61 6e 64 20 | 64 65 73 74 72 6f 79 69 |ing and |destroyi|
|00000390| 6e 67 20 77 69 6e 64 6f | 77 73 20 69 6e 64 65 70 |ng windo|ws indep|
|000003a0| 65 6e 64 65 6e 74 6c 79 | 20 6f 66 20 74 68 65 20 |endently| of the |
|000003b0| 75 73 65 72 20 69 6e 74 | 65 72 66 61 63 65 3f 0d |user int|erface?.|
|000003c0| 0d 32 29 20 47 72 65 67 | 20 41 6e 64 65 72 73 6f |.2) Greg| Anderso|
|000003d0| 6e 2c 20 d2 61 20 46 69 | 6e 64 65 72 20 6b 69 6e |n, .a Fi|nder kin|
|000003e0| 64 61 20 67 75 79 d3 20 | 61 74 20 41 70 70 6c 65 |da guy. |at Apple|
|000003f0| 20 77 61 73 20 62 75 73 | 79 20 68 61 63 6b 69 6e | was bus|y hackin|
|00000400| 67 20 74 68 65 20 73 63 | 72 69 70 74 61 62 6c 65 |g the sc|riptable|
|00000410| 20 66 69 6e 64 65 72 20 | 74 68 65 0d 6f 74 68 65 | finder |the.othe|
|00000420| 72 20 64 61 79 20 61 6e | 64 20 77 69 74 68 6f 75 |r day an|d withou|
|00000430| 74 20 6b 6e 6f 77 69 6e | 67 20 69 74 2c 20 63 6f |t knowin|g it, co|
|00000440| 6d 70 6c 65 74 65 6c 79 | 20 69 6d 70 6c 65 6d 65 |mpletely| impleme|
|00000450| 6e 74 65 64 20 61 6e 6f | 74 68 65 72 20 76 65 72 |nted ano|ther ver|
|00000460| 73 69 6f 6e 20 6f 66 20 | 74 68 65 20 46 75 74 75 |sion of |the Futu|
|00000470| 72 65 73 0d 70 61 63 6b | 61 67 65 2e 20 53 6f 6d |res.pack|age. Som|
|00000480| 65 74 69 6d 65 20 69 6e | 20 74 68 65 20 6e 65 78 |etime in| the nex|
|00000490| 74 20 63 65 6e 74 75 72 | 79 2c 20 61 20 44 45 56 |t centur|y, a DEV|
|000004a0| 45 4c 4f 50 20 6d 61 67 | 61 7a 69 6e 65 20 61 72 |ELOP mag|azine ar|
|000004b0| 74 69 63 6c 65 20 77 69 | 6c 6c 20 62 65 20 63 6f |ticle wi|ll be co|
|000004c0| 6d 69 6e 67 20 6f 75 74 | 20 6f 75 74 6c 69 6e 69 |ming out| outlini|
|000004d0| 6e 67 0d 77 68 61 74 20 | 68 65 20 64 69 64 2c 20 |ng.what |he did, |
|000004e0| 73 6f 20 62 65 20 61 77 | 61 72 65 20 74 68 61 74 |so be aw|are that|
|000004f0| 20 77 65 20 6d 61 79 20 | 61 74 74 65 6d 70 74 20 | we may |attempt |
|00000500| 74 6f 20 6d 65 72 67 65 | 20 68 69 73 20 63 6f 64 |to merge| his cod|
|00000510| 65 20 77 69 74 68 20 53 | 74 65 76 65 d5 73 20 77 |e with S|teve.s w|
|00000520| 6f 72 6b 2d 2d 20 74 68 | 65 79 0d 62 6f 74 68 20 |ork-- th|ey.both |
|00000530| 73 74 61 72 74 65 64 20 | 66 72 6f 6d 20 74 68 65 |started |from the|
|00000540| 20 6f 72 69 67 69 6e 61 | 6c 20 63 6f 64 65 20 66 | origina|l code f|
|00000550| 72 6f 6d 20 44 45 56 45 | 4c 4f 50 2c 20 73 6f 20 |rom DEVE|LOP, so |
|00000560| 69 74 20 73 68 6f 75 6c | 64 6e d5 74 20 62 65 20 |it shoul|dn.t be |
|00000570| 74 6f 6f 20 74 6f 75 67 | 68 2e 0d 0d 33 29 20 57 |too toug|h...3) W|
|00000580| 65 d5 6c 20 70 72 6f 62 | 61 62 6c 79 20 62 65 20 |e.l prob|ably be |
|00000590| 6d 61 6b 69 6e 67 20 73 | 6f 6d 65 20 73 69 67 6e |making s|ome sign|
|000005a0| 69 66 69 63 61 6e 74 20 | 63 68 61 6e 67 65 73 20 |ificant |changes |
|000005b0| 74 6f 20 74 68 65 20 41 | 70 70 6c 65 45 76 65 6e |to the A|ppleEven|
|000005c0| 74 20 61 6e 64 20 54 68 | 72 65 61 64 69 6e 67 20 |t and Th|reading |
|000005d0| 63 6f 64 65 20 74 6f 0d | 64 65 61 6c 20 77 69 74 |code to.|deal wit|
|000005e0| 68 20 41 52 4d 20 43 2b | 2b 2d 6c 69 6b 65 20 65 |h ARM C+|+-like e|
|000005f0| 78 63 65 70 74 69 6f 6e | 20 68 61 6e 64 6c 69 6e |xception| handlin|
|00000600| 67 2e 20 20 42 79 20 74 | 68 65 20 74 69 6d 65 20 |g. By t|he time |
|00000610| 77 65 20 67 65 74 20 74 | 6f 20 74 68 69 73 2c 20 |we get t|o this, |
|00000620| 6a 75 73 74 20 61 62 6f | 75 74 20 65 76 65 72 79 |just abo|ut every|
|00000630| 0d 43 2b 2b 20 63 6f 6d | 70 69 6c 65 72 20 66 6f |.C++ com|piler fo|
|00000640| 72 20 74 68 65 20 4d 61 | 63 20 77 69 6c 6c 20 73 |r the Ma|c will s|
|00000650| 75 70 70 6f 72 74 20 72 | 65 61 6c 20 65 78 63 65 |upport r|eal exce|
|00000660| 70 74 69 6f 6e 20 68 61 | 6e 64 6c 69 6e 67 20 61 |ption ha|ndling a|
|00000670| 6e 79 77 61 79 20 28 54 | 48 49 4e 4b 20 43 20 38 |nyway (T|HINK C 8|
|00000680| 2e 30 20 73 65 65 6d 73 | 20 74 6f 0d 64 6f 20 74 |.0 seems| to.do t|
|00000690| 68 69 73 2c 20 66 72 6f | 6d 20 77 68 61 74 20 49 |his, fro|m what I|
|000006a0| d5 76 65 20 68 65 61 72 | 64 3b 20 41 70 70 6c 65 |.ve hear|d; Apple|
|000006b0| 20 70 6c 61 6e 73 20 74 | 6f 20 73 75 70 70 6f 72 | plans t|o suppor|
|000006c0| 74 20 72 65 61 6c 20 65 | 78 63 65 70 74 69 6f 6e |t real e|xception|
|000006d0| 73 20 69 6e 20 4d 72 43 | 3b 20 61 6e 64 20 47 72 |s in MrC|; and Gr|
|000006e0| 65 67 20 47 61 6c 61 6e | 6f 73 0d 61 6c 72 65 61 |eg Galan|os.alrea|
|000006f0| 64 79 20 68 61 73 20 69 | 74 20 6f 6e 20 68 69 73 |dy has i|t on his|
|00000700| 20 73 63 68 65 64 75 6c | 65 20 73 6f 6d 65 77 68 | schedul|e somewh|
|00000710| 65 72 65 29 2e 20 20 54 | 68 65 20 77 6f 72 6b 20 |ere). T|he work |
|00000720| 68 65 72 65 20 69 73 20 | 74 68 61 74 20 77 65 20 |here is |that we |
|00000730| 77 61 6e 74 20 74 6f 20 | 73 75 70 70 6f 72 74 20 |want to |support |
|00000740| 74 68 72 65 61 64 64 65 | 64 0d 41 70 70 6c 65 45 |threadde|d.AppleE|
|00000750| 76 65 6e 74 20 68 61 6e | 64 6c 69 6e 67 2c 20 73 |vent han|dling, s|
|00000760| 6f 6d 65 20 63 6f 6f 6c | 20 6f 62 6a 65 63 74 20 |ome cool| object |
|00000770| 6d 6f 64 65 6c 20 73 74 | 75 66 66 20 28 66 72 6f |model st|uff (fro|
|00000780| 6d 20 45 72 69 63 20 42 | 65 72 64 61 68 6c 2c 20 |m Eric B|erdahl, |
|00000790| 54 61 6c 69 67 65 6e 74 | 20 63 75 6c 74 20 6d 65 |Taligent| cult me|
|000007a0| 6d 62 65 72 29 2c 0d 61 | 6e 64 20 6d 61 6b 65 20 |mber),.a|nd make |
|000007b0| 69 74 20 61 6c 6c 20 77 | 6f 72 6b 20 77 69 74 68 |it all w|ork with|
|000007c0| 20 65 78 63 65 70 74 69 | 6f 6e 73 2e 0d 0d 0d 43 | excepti|ons....C|
|000007d0| 6f 64 65 57 61 72 72 69 | 6f 72 2c 20 53 79 6d 61 |odeWarri|or, Syma|
|000007e0| 6e 74 65 63 2c 20 61 6e | 64 20 53 65 6d 61 6e 74 |ntec, an|d Semant|
|000007f0| 69 63 73 0d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ics.====|========|
|00000800| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000810| 3d 3d 3d 3d 3d 3d 3d 3d | 0d 0d 53 70 72 6f 63 6b |========|..Sprock|
|00000820| 65 74 20 6e 6f 77 20 72 | 65 71 75 69 72 65 73 20 |et now r|equires |
|00000830| 74 68 65 20 75 73 65 20 | 6f 66 20 74 68 65 20 55 |the use |of the U|
|00000840| 6e 69 76 65 72 73 61 6c | 20 48 65 61 64 65 72 73 |niversal| Headers|
|00000850| 20 32 2e 30 61 33 2e 20 | 54 68 65 73 65 20 68 65 | 2.0a3. |These he|
|00000860| 61 64 65 72 73 20 63 61 | 6e 20 62 65 0d 66 6f 75 |aders ca|n be.fou|
|00000870| 6e 64 20 69 6e 20 43 57 | 35 20 61 6e 64 20 66 75 |nd in CW|5 and fu|
|00000880| 74 75 72 65 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 |ture ver|sions of|
|00000890| 20 74 68 65 20 53 79 6d | 61 6e 74 65 63 20 43 2b | the Sym|antec C+|
|000008a0| 2b 20 65 6e 69 72 6f 6e | 6d 65 6e 74 73 2e 0d 0d |+ eniron|ments...|
|000008b0| 49 66 20 79 6f 75 20 61 | 72 65 20 75 73 69 6e 67 |If you a|re using|
|000008c0| 20 54 48 49 4e 4b 20 43 | 2c 20 79 6f 75 20 63 61 | THINK C|, you ca|
|000008d0| 6e 20 65 69 74 68 65 72 | 20 68 61 63 6b 20 74 68 |n either| hack th|
|000008e0| 65 20 73 6f 75 72 63 65 | 2c 20 6f 72 20 67 72 61 |e source|, or gra|
|000008f0| 62 20 74 68 65 20 68 65 | 61 64 65 72 73 20 5b 48 |b the he|aders [H|
|00000900| 4d 4d 4d 20 55 52 4c 3f | 3f 3f 5d 2e 0d 0d 57 68 |MMM URL?|??]...Wh|
|00000910| 69 6c 65 20 77 65 d5 76 | 65 20 6d 61 64 65 20 61 |ile we.v|e made a|
|00000920| 6e 20 61 74 74 65 6d 70 | 74 20 61 74 20 6d 61 6b |n attemp|t at mak|
|00000930| 69 6e 67 20 53 70 72 6f | 63 6b 65 74 20 77 6f 72 |ing Spro|cket wor|
|00000940| 6b 20 62 65 74 74 65 72 | 20 69 6e 20 54 48 49 4e |k better| in THIN|
|00000950| 4b 20 43 20 37 2e 30 2c | 20 77 65 20 77 69 6c 6c |K C 7.0,| we will|
|00000960| 0d 74 72 79 20 74 6f 20 | 6d 61 6b 65 20 74 68 69 |.try to |make thi|
|00000970| 6e 67 73 20 62 65 74 74 | 65 72 20 69 6e 20 74 68 |ngs bett|er in th|
|00000980| 65 20 66 75 74 75 72 65 | 20 66 6f 72 20 65 76 65 |e future| for eve|
|00000990| 72 79 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 28 |ry envir|onment (|
|000009a0| 69 6e 63 6c 75 64 69 6e | 67 20 4d 50 57 29 2e 0d |includin|g MPW)..|
|000009b0| 0d 54 68 69 73 20 77 69 | 6c 6c 20 62 65 63 6f 6d |.This wi|ll becom|
|000009c0| 65 20 6d 6f 72 65 20 69 | 6d 70 6f 72 74 61 6e 74 |e more i|mportant|
|000009d0| 20 61 73 20 77 65 20 73 | 74 61 72 74 20 74 72 79 | as we s|tart try|
|000009e0| 69 6e 67 20 74 6f 20 74 | 61 6b 65 20 61 64 76 61 |ing to t|ake adva|
|000009f0| 6e 74 61 67 65 20 6f 66 | 20 66 65 61 74 75 72 65 |ntage of| feature|
|00000a00| 73 20 6c 69 6b 65 0d 43 | 2b 2b 20 65 78 63 65 70 |s like.C|++ excep|
|00000a10| 74 69 6f 6e 20 68 61 6e | 64 6c 69 6e 67 2c 20 77 |tion han|dling, w|
|00000a20| 68 69 6c 65 20 73 74 69 | 6c 6c 20 74 72 79 69 6e |hile sti|ll tryin|
|00000a30| 67 20 74 6f 20 62 65 20 | 6d 75 6c 74 69 2d 74 68 |g to be |multi-th|
|00000a40| 72 65 61 64 61 62 6c 65 | 2e 0d 0d 0d 42 65 74 74 |readable|....Bett|
|00000a50| 65 72 20 28 6f 72 20 4a | 75 73 74 20 50 6c 61 69 |er (or J|ust Plai|
|00000a60| 6e 20 44 69 66 66 65 72 | 65 6e 74 29 20 4d 65 6e |n Differ|ent) Men|
|00000a70| 75 73 0d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |us.=====|========|
|00000a80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000a90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0d 54 68 65 20 62 |========|=..The b|
|00000aa0| 69 67 67 65 73 74 20 63 | 68 61 6e 67 65 20 69 6e |iggest c|hange in|
|00000ab0| 20 53 70 72 6f 63 6b 65 | 74 20 68 61 73 20 62 65 | Sprocke|t has be|
|00000ac0| 65 6e 20 61 20 6d 61 6a | 6f 72 20 72 65 61 72 63 |en a maj|or rearc|
|00000ad0| 68 69 74 65 63 74 69 6e | 67 20 6f 66 20 6d 65 6e |hitectin|g of men|
|00000ae0| 75 20 63 6f 6d 6d 61 6e | 64 20 68 61 6e 64 6c 69 |u comman|d handli|
|00000af0| 6e 67 2e 0d 57 65 20 6e | 6f 77 20 68 61 76 65 20 |ng..We n|ow have |
|00000b00| 61 20 54 4d 65 6e 75 42 | 61 72 20 6f 62 6a 65 63 |a TMenuB|ar objec|
|00000b10| 74 20 77 68 69 63 68 20 | 6b 65 65 70 73 20 74 72 |t which |keeps tr|
|00000b20| 61 63 6b 20 6f 66 20 d2 | 3c 6d 65 6e 75 2c 69 74 |ack of .|<menu,it|
|00000b30| 65 6d 3e 20 2d 3e 20 3c | 63 6f 6d 6d 61 6e 64 3e |em> -> <|command>|
|00000b40| d3 20 6d 61 70 70 69 6e | 67 73 0d 69 6e 20 61 20 |. mappin|gs.in a |
|00000b50| 56 45 52 59 20 73 69 6d | 69 6c 61 72 20 6d 61 6e |VERY sim|ilar man|
|00000b60| 6e 65 72 20 74 6f 20 77 | 68 61 74 20 69 73 20 75 |ner to w|hat is u|
|00000b70| 73 65 64 20 69 6e 20 4f | 70 65 6e 44 6f 63 aa 2e |sed in O|penDoc..|
|00000b80| 0d 0d 48 65 72 65 d5 73 | 20 61 20 71 75 69 63 6b |..Here.s| a quick|
|00000b90| 20 6c 6f 6f 6b 20 61 74 | 20 74 68 65 20 6d 65 74 | look at| the met|
|00000ba0| 68 6f 64 73 20 6f 66 20 | 54 4d 65 6e 75 42 61 72 |hods of |TMenuBar|
|00000bb0| 20 74 68 61 74 20 61 72 | 65 20 69 6e 74 65 72 65 | that ar|e intere|
|00000bc0| 73 74 69 6e 67 20 74 6f | 20 79 6f 75 3a 0d 0d 63 |sting to| you:..c|
|00000bd0| 6c 61 73 73 20 54 4d 65 | 6e 75 42 61 72 0d 09 7b |lass TMe|nuBar..{|
|00000be0| 0d 09 4f 53 45 72 72 09 | 09 09 09 09 47 65 74 4e |..OSErr.|....GetN|
|00000bf0| 65 77 4d 65 6e 75 42 61 | 72 28 73 68 6f 72 74 20 |ewMenuBa|r(short |
|00000c00| 77 68 69 63 68 4d 42 41 | 52 29 3b 0d 09 4d 65 6e |whichMBA|R);..Men|
|00000c10| 75 52 65 66 09 09 09 09 | 09 47 65 74 4d 65 6e 75 |uRef....|.GetMenu|
|00000c20| 46 72 6f 6d 43 4d 4e 55 | 28 73 68 6f 72 74 20 77 |FromCMNU|(short w|
|00000c30| 68 69 63 68 4d 65 6e 75 | 29 3b 0d 09 0d 09 2e 20 |hichMenu|);..... |
|00000c40| 2e 20 2e 0d 0d 09 4d 65 | 6e 75 43 6f 6d 6d 61 6e |. ....Me|nuComman|
|00000c50| 64 49 44 09 09 09 47 65 | 74 43 6f 6d 6d 61 6e 64 |dID...Ge|tCommand|
|00000c60| 28 4d 65 6e 75 49 44 20 | 6d 65 6e 75 2c 20 4d 65 |(MenuID |menu, Me|
|00000c70| 6e 75 49 74 65 6d 49 44 | 20 69 74 65 6d 29 3b 0d |nuItemID| item);.|
|00000c80| 09 76 6f 69 64 09 09 09 | 09 09 47 65 74 4d 65 6e |.void...|..GetMen|
|00000c90| 75 41 6e 64 49 74 65 6d | 28 4d 65 6e 75 43 6f 6d |uAndItem|(MenuCom|
|00000ca0| 6d 61 6e 64 49 44 20 63 | 6f 6d 6d 61 6e 64 4e 75 |mandID c|ommandNu|
|00000cb0| 6d 2c 20 4d 65 6e 75 49 | 44 20 2a 20 72 65 74 75 |m, MenuI|D * retu|
|00000cc0| 72 6e 65 64 4d 65 6e 75 | 2c 20 4d 65 6e 75 49 74 |rnedMenu|, MenuIt|
|00000cd0| 65 6d 49 44 20 2a 20 72 | 65 74 75 72 6e 65 64 49 |emID * r|eturnedI|
|00000ce0| 74 65 6d 29 3b 0d 09 0d | 09 4f 53 45 72 72 09 09 |tem);...|.OSErr..|
|00000cf0| 09 09 09 52 65 67 69 73 | 74 65 72 43 6f 6d 6d 61 |...Regis|terComma|
|00000d00| 6e 64 28 4d 65 6e 75 43 | 6f 6d 6d 61 6e 64 49 44 |nd(MenuC|ommandID|
|00000d10| 20 63 6f 6d 6d 61 6e 64 | 4e 75 6d 2c 20 4d 65 6e | command|Num, Men|
|00000d20| 75 49 44 20 6d 65 6e 75 | 2c 20 4d 65 6e 75 49 74 |uID menu|, MenuIt|
|00000d30| 65 6d 49 44 20 69 74 65 | 6d 29 3b 0d 09 4f 53 45 |emID ite|m);..OSE|
|00000d40| 72 72 09 09 09 09 09 55 | 6e 72 65 67 69 73 74 65 |rr.....U|nregiste|
|00000d50| 72 43 6f 6d 6d 61 6e 64 | 28 4d 65 6e 75 43 6f 6d |rCommand|(MenuCom|
|00000d60| 6d 61 6e 64 49 44 20 63 | 6f 6d 6d 61 6e 64 4e 75 |mandID c|ommandNu|
|00000d70| 6d 29 3b 0d 09 0d 09 76 | 6f 69 64 09 09 09 09 09 |m);....v|oid.....|
|00000d80| 45 6e 61 62 6c 65 43 6f | 6d 6d 61 6e 64 28 4d 65 |EnableCo|mmand(Me|
|00000d90| 6e 75 43 6f 6d 6d 61 6e | 64 49 44 20 63 6f 6d 6d |nuComman|dID comm|
|00000da0| 61 6e 64 4e 75 6d 2c 20 | 42 6f 6f 6c 65 61 6e 20 |andNum, |Boolean |
|00000db0| 65 6e 61 62 6c 65 29 3b | 0d 09 76 6f 69 64 09 09 |enable);|..void..|
|00000dc0| 09 09 09 45 6e 61 62 6c | 65 41 6e 64 43 68 65 63 |...Enabl|eAndChec|
|00000dd0| 6b 43 6f 6d 6d 61 6e 64 | 28 4d 65 6e 75 43 6f 6d |kCommand|(MenuCom|
|00000de0| 6d 61 6e 64 49 44 20 63 | 6f 6d 6d 61 6e 64 4e 75 |mandID c|ommandNu|
|00000df0| 6d 2c 20 42 6f 6f 6c 65 | 61 6e 20 65 6e 61 62 6c |m, Boole|an enabl|
|00000e00| 65 2c 20 42 6f 6f 6c 65 | 61 6e 20 63 68 65 63 6b |e, Boole|an check|
|00000e10| 29 3b 0d 0d 09 76 6f 69 | 64 09 09 09 09 09 47 65 |);...voi|d.....Ge|
|00000e20| 74 49 74 65 6d 53 74 72 | 69 6e 67 28 4d 65 6e 75 |tItemStr|ing(Menu|
|00000e30| 43 6f 6d 6d 61 6e 64 49 | 44 20 63 6f 6d 6d 61 6e |CommandI|D comman|
|00000e40| 64 4e 75 6d 2c 53 74 72 | 69 6e 67 50 74 72 20 69 |dNum,Str|ingPtr i|
|00000e50| 74 65 6d 53 74 72 69 6e | 67 29 3b 0d 09 76 6f 69 |temStrin|g);..voi|
|00000e60| 64 09 09 09 09 09 53 65 | 74 49 74 65 6d 53 74 72 |d.....Se|tItemStr|
|00000e70| 69 6e 67 28 4d 65 6e 75 | 43 6f 6d 6d 61 6e 64 49 |ing(Menu|CommandI|
|00000e80| 44 20 63 6f 6d 6d 61 6e | 64 4e 75 6d 2c 53 74 72 |D comman|dNum,Str|
|00000e90| 69 6e 67 50 74 72 20 69 | 74 65 6d 53 74 72 69 6e |ingPtr i|temStrin|
|00000ea0| 67 29 3b 0d 0d 09 2e 20 | 2e 20 2e 0d 09 7d 3b 0d |g);.... |. ...};.|
|00000eb0| 0d 54 68 65 20 62 61 73 | 69 63 20 69 64 65 61 20 |.The bas|ic idea |
|00000ec0| 69 73 20 74 68 61 74 20 | 65 61 63 68 20 6d 65 6e |is that |each men|
|00000ed0| 75 20 69 74 65 6d 20 63 | 61 6e 20 68 61 76 65 20 |u item c|an have |
|00000ee0| 61 20 4d 65 6e 75 43 6f | 6d 6d 61 6e 64 49 44 20 |a MenuCo|mmandID |
|00000ef0| 28 61 2e 6b 2e 61 2e 20 | 75 6e 73 69 67 6e 65 64 |(a.k.a. |unsigned|
|00000f00| 20 6c 6f 6e 67 29 20 61 | 74 74 61 63 68 65 64 0d | long) a|ttached.|
|00000f10| 74 6f 20 69 74 2e 20 49 | 6e 20 74 68 69 73 20 77 |to it. I|n this w|
|00000f20| 61 79 2c 20 79 6f 75 20 | 63 61 6e 20 73 69 6d 70 |ay, you |can simp|
|00000f30| 6c 79 20 61 73 73 69 67 | 6e 20 61 20 6e 75 6d 65 |ly assig|n a nume|
|00000f40| 72 69 63 20 63 6f 6e 73 | 74 61 6e 74 20 28 65 2e |ric cons|tant (e.|
|00000f50| 67 2e 2c 20 31 30 30 30 | 29 20 74 6f 20 61 20 6d |g., 1000|) to a m|
|00000f60| 65 6e 75 20 69 74 65 6d | 2c 20 61 6e 64 0d 74 68 |enu item|, and.th|
|00000f70| 65 6e 20 4e 45 56 45 52 | 20 45 56 45 52 20 43 41 |en NEVER| EVER CA|
|00000f80| 52 45 20 77 68 65 72 65 | 20 74 68 61 74 20 69 74 |RE where| that it|
|00000f90| 65 6d 20 61 63 74 75 61 | 6c 79 20 6c 69 76 65 73 |em actua|ly lives|
|00000fa0| 20 69 6e 20 79 6f 75 72 | 20 6d 65 6e 75 62 61 72 | in your| menubar|
|00000fb0| 21 0d 0d 49 6e 20 6f 72 | 64 65 72 20 74 6f 20 61 |!..In or|der to a|
|00000fc0| 6e 20 61 74 74 61 63 68 | 20 61 20 4d 65 6e 75 43 |n attach| a MenuC|
|00000fd0| 6f 6d 6d 61 6e 64 49 44 | 20 74 6f 20 61 20 70 61 |ommandID| to a pa|
|00000fe0| 72 74 69 63 75 6c 61 72 | 20 6d 65 6e 75 20 61 6e |rticular| menu an|
|00000ff0| 64 20 69 74 65 6d 2c 20 | 73 69 6d 70 6c 65 20 63 |d item, |simple c|
|00001000| 61 6c 6c 20 74 68 65 20 | 6d 65 74 68 6f 64 0d 52 |all the |method.R|
|00001010| 65 67 69 73 74 65 72 43 | 6f 6d 6d 61 6e 64 3a 0d |egisterC|ommand:.|
|00001020| 0d 09 67 4d 65 6e 75 42 | 61 72 2d 3e 52 65 67 69 |..gMenuB|ar->Regi|
|00001030| 73 74 65 72 43 6f 6d 6d | 61 6e 64 28 63 4e 65 77 |sterComm|and(cNew|
|00001040| 57 69 64 67 65 74 2c 6d | 46 69 6c 65 4d 65 6e 75 |Widget,m|FileMenu|
|00001050| 2c 69 4e 65 77 57 69 64 | 67 65 74 29 3b 0d 0d 0d |,iNewWid|get);...|
|00001060| d2 42 75 74 20 74 68 61 | 74 d5 73 20 6e 6f 74 20 |.But tha|t.s not |
|00001070| 4d 61 63 69 6e 74 6f 73 | 68 d3 0d 2d 2d 2d 2d 2d |Macintos|h..-----|
|00001080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001090| 2d 2d 2d 2d 2d 0d 0d 49 | 66 20 79 6f 75 20 64 6f |-----..I|f you do|
|000010a0| 6e d5 74 20 6c 69 6b 65 | 20 68 61 76 69 6e 67 20 |n.t like| having |
|000010b0| 74 6f 20 72 65 67 69 73 | 74 65 72 20 63 6f 6d 6d |to regis|ter comm|
|000010c0| 61 6e 64 73 20 70 72 6f | 67 72 61 6d 6d 61 74 69 |ands pro|grammati|
|000010d0| 63 61 6c 6c 79 2c 20 79 | 6f 75 20 63 61 6e 20 64 |cally, y|ou can d|
|000010e0| 6f 20 77 68 61 74 20 6e | 6f 72 6d 61 6c 20 66 6f |o what n|ormal fo|
|000010f0| 6c 6b 73 0d 64 6f 3a 20 | 75 73 65 20 72 65 73 6f |lks.do: |use reso|
|00001100| 75 72 63 65 73 2e 20 55 | 6e 6c 69 6b 65 20 4f 70 |urces. U|nlike Op|
|00001110| 65 6e 44 6f 63 aa 2c 20 | 77 65 20 73 75 70 70 6f |enDoc., |we suppo|
|00001120| 72 74 20 6d 65 6e 75 20 | 72 65 73 6f 75 72 63 65 |rt menu |resource|
|00001130| 73 20 77 68 69 63 68 20 | 63 61 6e 20 61 75 74 6f |s which |can auto|
|00001140| 6d 61 74 69 63 61 6c 6c | 79 20 72 65 67 69 73 74 |maticall|y regist|
|00001150| 65 72 0d 63 6f 6d 6d 61 | 6e 64 73 20 77 69 74 68 |er.comma|nds with|
|00001160| 6f 75 74 20 74 68 65 20 | 6e 65 65 64 20 66 6f 72 |out the |need for|
|00001170| 20 63 61 6c 6c 69 6e 67 | 20 52 65 67 69 73 74 65 | calling| Registe|
|00001180| 72 43 6f 6d 6d 61 6e 64 | 2e 0d 0d 53 74 72 61 6e |rCommand|...Stran|
|00001190| 67 65 6c 79 20 65 6e 6f | 75 67 68 2c 20 61 20 6e |gely eno|ugh, a n|
|000011a0| 65 77 20 72 65 73 6f 75 | 72 63 65 20 74 79 70 65 |ew resou|rce type|
|000011b0| 20 66 6f 72 20 6d 65 6e | 75 73 20 77 69 74 68 20 | for men|us with |
|000011c0| d2 6c 6f 6e 67 69 6e 74 | d3 20 63 6f 6d 6d 61 6e |.longint|. comman|
|000011d0| 64 73 20 28 43 4d 4e 55 | 73 29 2c 20 77 61 73 20 |ds (CMNU|s), was |
|000011e0| 63 72 65 61 74 65 64 0d | 66 6f 72 20 4d 61 63 41 |created.|for MacA|
|000011f0| 70 70 2e 20 49 6e 20 74 | 68 65 20 73 70 69 72 69 |pp. In t|he spiri|
|00001200| 74 20 6f 66 20 6e 65 76 | 65 72 20 64 6f 69 6e 67 |t of nev|er doing|
|00001210| 20 77 6f 72 6b 20 79 6f | 75 20 64 6f 6e d5 74 20 | work yo|u don.t |
|00001220| 6e 65 65 64 20 74 6f 20 | 64 6f 2c 20 77 65 20 68 |need to |do, we h|
|00001230| 61 70 70 69 6c 79 20 63 | 68 6f 6f 73 65 20 74 68 |appily c|hoose th|
|00001240| 69 73 0d 72 65 73 6f 75 | 72 63 65 20 74 79 70 65 |is.resou|rce type|
|00001250| 20 66 6f 72 20 53 70 72 | 6f 63 6b 65 74 d5 73 20 | for Spr|ocket.s |
|00001260| 6d 65 6e 75 20 74 65 6d | 70 6c 61 74 65 20 72 65 |menu tem|plate re|
|00001270| 73 6f 75 72 63 65 73 2d | 2d 20 52 65 73 45 64 69 |sources-|- ResEdi|
|00001280| 74 20 61 6e 64 20 52 65 | 73 6f 75 72 63 65 72 6f |t and Re|sourcero|
|00001290| 72 20 61 6c 72 65 61 64 | 79 20 6b 6e 6f 77 0d 68 |r alread|y know.h|
|000012a0| 6f 77 20 74 6f 20 65 64 | 69 74 20 43 4d 4e 55 73 |ow to ed|it CMNUs|
|000012b0| 2e 20 5b 57 61 74 63 68 | 20 6f 75 74 2c 20 52 65 |. [Watch| out, Re|
|000012c0| 73 45 64 69 74 20 32 2e | 31 2e 33 20 77 69 6c 6c |sEdit 2.|1.3 will|
|000012d0| 20 6e 6f 74 20 63 68 61 | 6e 67 65 20 74 68 65 20 | not cha|nge the |
|000012e0| 6d 65 6e 75 49 44 20 66 | 69 65 6c 64 20 77 68 65 |menuID f|ield whe|
|000012f0| 6e 20 72 65 6e 75 6d 62 | 65 72 69 6e 67 0d 61 20 |n renumb|ering.a |
|00001300| 43 4d 4e 55 20 72 65 73 | 6f 75 72 63 65 20 61 73 |CMNU res|ource as|
|00001310| 20 69 74 20 64 6f 65 73 | 20 77 69 74 68 20 4d 45 | it does| with ME|
|00001320| 4e 55 20 72 65 73 6f 75 | 72 63 65 73 5d 2e 0d 0d |NU resou|rces]...|
|00001330| 55 6e 6c 69 6b 65 20 4d | 61 63 41 70 70 2c 20 77 |Unlike M|acApp, w|
|00001340| 65 20 64 6f 6e d5 74 20 | 64 6f 20 6d 75 63 68 20 |e don.t |do much |
|00001350| 65 76 69 6c 20 6d 65 6e | 75 20 6d 61 6e 61 67 65 |evil men|u manage|
|00001360| 72 20 68 61 63 6b 69 6e | 67 20 61 6e 64 20 6c 6f |r hackin|g and lo|
|00001370| 77 6d 65 6d 20 73 6c 61 | 6d 6d 69 6e 67 2c 20 77 |wmem sla|mming, w|
|00001380| 65 20 75 73 65 20 74 68 | 65 0d 43 4d 4e 55 20 72 |e use th|e.CMNU r|
|00001390| 65 73 6f 75 72 63 65 20 | 61 73 20 61 20 74 65 6d |esource |as a tem|
|000013a0| 70 6c 61 74 65 2c 20 61 | 6e 64 20 63 6f 6e 73 74 |plate, a|nd const|
|000013b0| 72 75 63 74 20 74 68 65 | 20 63 6f 72 72 65 73 70 |ruct the| corresp|
|000013c0| 6f 6e 64 69 6e 67 20 6d | 65 6e 75 20 76 69 61 20 |onding m|enu via |
|000013d0| 6e 6f 72 6d 61 6c 20 6d | 65 6e 75 20 6d 61 6e 61 |normal m|enu mana|
|000013e0| 67 65 72 0d 72 6f 75 74 | 69 6e 65 73 2e 20 49 6e |ger.rout|ines. In|
|000013f0| 20 6f 72 64 65 72 20 74 | 6f 20 64 6f 20 74 68 69 | order t|o do thi|
|00001400| 73 2c 20 79 6f 75 20 63 | 61 6e 20 65 69 74 68 65 |s, you c|an eithe|
|00001410| 72 20 75 73 65 20 74 68 | 65 20 6d 65 74 68 6f 64 |r use th|e method|
|00001420| 73 20 47 65 74 4e 65 77 | 4d 65 6e 75 42 61 72 20 |s GetNew|MenuBar |
|00001430| 61 6e 64 2f 6f 72 0d 47 | 65 74 4d 65 6e 75 46 72 |and/or.G|etMenuFr|
|00001440| 6f 6d 43 4d 4e 55 2e 0d | 0d 0d 2d 3d 2d 3d 2d 3d |omCMNU..|..-=-=-=|
|00001450| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|00001460| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|00001470| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|00001480| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|00001490| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|000014a0| 2d 3d 2d 0d 41 6e 20 4f | 70 65 6e 44 6f 63 20 54 |-=-.An O|penDoc T|
|000014b0| 61 6e 67 65 6e 74 3a 0d | 0d 42 79 20 74 68 65 20 |angent:.|.By the |
|000014c0| 77 61 79 2c 20 69 66 20 | 79 6f 75 20 41 52 45 20 |way, if |you ARE |
|000014d0| 62 75 69 6c 64 69 6e 67 | 20 61 6e 20 4f 70 65 6e |building| an Open|
|000014e0| 44 6f 63 20 70 61 72 74 | 2c 20 79 6f 75 20 6d 69 |Doc part|, you mi|
|000014f0| 67 68 74 20 77 61 6e 74 | 20 74 6f 20 63 68 65 63 |ght want| to chec|
|00001500| 6b 20 6f 75 74 20 74 77 | 6f 20 6f 66 20 74 68 65 |k out tw|o of the|
|00001510| 0d 6d 65 74 68 6f 64 73 | 20 69 6e 20 54 4d 65 6e |.methods| in TMen|
|00001520| 75 42 61 72 3a 0d 0d 09 | 4f 53 45 72 72 09 09 47 |uBar:...|OSErr..G|
|00001530| 65 74 4e 65 77 4d 65 6e | 75 42 61 72 28 73 68 6f |etNewMen|uBar(sho|
|00001540| 72 74 20 72 65 73 6f 75 | 72 63 65 49 44 29 3b 0d |rt resou|rceID);.|
|00001550| 0d 09 4f 75 72 20 76 65 | 72 73 69 6f 6e 20 6f 66 |..Our ve|rsion of|
|00001560| 20 74 68 65 20 74 6f 6f | 6c 62 6f 78 20 72 6f 75 | the too|lbox rou|
|00001570| 74 69 6e 65 20 47 65 74 | 4e 65 77 4d 42 61 72 20 |tine Get|NewMBar |
|00001580| 77 68 69 63 68 20 73 75 | 70 70 6f 72 74 73 20 43 |which su|pports C|
|00001590| 4d 4e 55 20 72 65 73 6f | 75 72 63 65 73 2e 20 41 |MNU reso|urces. A|
|000015a0| 6c 73 6f 0d 09 75 6e 6c | 69 6b 65 20 47 65 74 4e |lso..unl|ike GetN|
|000015b0| 65 77 4d 42 61 72 2c 20 | 6f 75 72 20 72 6f 75 74 |ewMBar, |our rout|
|000015c0| 69 6e 65 20 67 6f 65 73 | 20 61 68 65 61 64 20 61 |ine goes| ahead a|
|000015d0| 6e 20 6f 70 65 72 61 74 | 65 73 20 6f 6e 20 74 68 |n operat|es on th|
|000015e0| 65 20 63 75 72 72 65 6e | 74 20 6d 65 6e 75 62 61 |e curren|t menuba|
|000015f0| 72 2e 20 59 6f 75 0d 09 | 77 69 6c 6c 20 68 61 76 |r. You..|will hav|
|00001600| 65 20 74 6f 20 6d 61 6b | 65 20 73 6f 6d 65 20 63 |e to mak|e some c|
|00001610| 68 61 6e 67 65 73 20 74 | 6f 20 6d 61 6b 65 20 74 |hanges t|o make t|
|00001620| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 4f 70 65 |his func|tion Ope|
|00001630| 6e 44 6f 63 2d 73 61 76 | 76 79 20 28 6c 69 6b 65 |nDoc-sav|vy (like|
|00001640| 20 64 65 61 6c 69 6e 67 | 0d 09 77 69 74 68 20 4f | dealing|..with O|
|00001650| 44 50 6c 61 74 66 6f 72 | 6d 4d 65 6e 75 73 20 69 |DPlatfor|mMenus i|
|00001660| 6e 73 74 65 61 64 20 6f | 66 20 4d 65 6e 75 52 65 |nstead o|f MenuRe|
|00001670| 66 73 2c 20 65 74 63 2e | 29 0d 09 0d 09 4d 65 6e |fs, etc.|)....Men|
|00001680| 75 52 65 66 09 09 47 65 | 74 4d 65 6e 75 46 72 6f |uRef..Ge|tMenuFro|
|00001690| 6d 43 4d 4e 55 28 73 68 | 6f 72 74 20 72 65 73 6f |mCMNU(sh|ort reso|
|000016a0| 75 72 63 65 49 44 29 3b | 0d 0d 09 54 68 69 73 20 |urceID);|...This |
|000016b0| 72 6f 75 74 69 6e 65 73 | 20 74 61 6b 65 73 20 61 |routines| takes a|
|000016c0| 20 43 4d 4e 55 20 72 65 | 73 6f 75 72 63 65 20 49 | CMNU re|source I|
|000016d0| 44 2c 20 61 6e 64 20 72 | 65 74 75 72 6e 73 20 61 |D, and r|eturns a|
|000016e0| 20 4d 65 6e 75 52 65 66 | 20 28 61 2e 6b 2e 61 2e | MenuRef| (a.k.a.|
|000016f0| 20 4d 65 6e 75 48 61 6e | 64 6c 65 29 0d 09 62 61 | MenuHan|dle)..ba|
|00001700| 73 65 64 20 6f 6e 20 74 | 68 65 20 63 6f 6e 74 65 |sed on t|he conte|
|00001710| 6e 74 20 6f 66 20 74 68 | 65 20 72 65 73 6f 75 72 |nt of th|e resour|
|00001720| 63 65 2e 20 49 66 20 6e | 6f 20 43 4d 4e 55 20 69 |ce. If n|o CMNU i|
|00001730| 73 20 66 6f 75 6e 64 2c | 20 74 68 65 20 72 65 73 |s found,| the res|
|00001740| 75 6c 74 20 69 73 20 4e | 55 4c 4c 2e 0d 0d 57 69 |ult is N|ULL...Wi|
|00001750| 74 68 20 73 6f 6d 65 20 | 68 61 63 6b 69 6e 67 20 |th some |hacking |
|00001760| 74 68 65 73 65 20 72 6f | 75 74 69 6e 65 73 20 73 |these ro|utines s|
|00001770| 68 6f 75 6c 64 20 62 65 | 20 75 73 65 66 75 6c 20 |hould be| useful |
|00001780| 66 6f 72 20 6d 61 6b 69 | 6e 67 20 79 6f 75 72 20 |for maki|ng your |
|00001790| 4f 70 65 6e 44 6f 63 20 | 70 61 72 74 20 6c 65 73 |OpenDoc |part les|
|000017a0| 73 0d d2 68 61 72 64 63 | 6f 64 65 64 d3 20 61 6e |s..hardc|oded. an|
|000017b0| 64 20 6d 6f 72 65 20 72 | 65 73 6f 75 72 63 65 20 |d more r|esource |
|000017c0| 64 61 74 61 2d 64 72 69 | 76 65 6e 2e 20 49 66 20 |data-dri|ven. If |
|000017d0| 79 6f 75 20 64 6f 6e d5 | 74 20 77 61 6e 74 20 74 |you don.|t want t|
|000017e0| 6f 20 6d 65 73 73 20 77 | 69 74 68 20 53 4f 4d 2c |o mess w|ith SOM,|
|000017f0| 20 49 d5 64 0d 73 75 67 | 67 65 73 74 20 6a 75 73 | I.d.sug|gest jus|
|00001800| 74 20 6d 61 6b 69 6e 67 | 20 74 68 65 73 65 20 75 |t making| these u|
|00001810| 74 69 6c 69 74 79 20 66 | 75 6e 63 74 69 6f 6e 73 |tility f|unctions|
|00001820| 20 69 6e 20 79 6f 75 72 | 20 70 61 72 74 2e 0d 2d | in your| part..-|
|00001830| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00001840| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00001850| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00001860| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00001870| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00001880| 3d 2d 3d 2d 3d 2d 3d 2d | 0d 0d 4e 6f 77 2c 20 62 |=-=-=-=-|..Now, b|
|00001890| 61 63 6b 20 74 6f 20 6f | 75 72 20 70 72 6f 67 72 |ack to o|ur progr|
|000018a0| 61 6d 0d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |am.-----|--------|
|000018b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0d 4c 69 6b |--------|---..Lik|
|000018c0| 65 20 74 68 65 20 4f 70 | 65 6e 44 6f 63 20 73 74 |e the Op|enDoc st|
|000018d0| 75 66 66 2c 20 79 6f 75 | 20 63 61 6e 20 65 6e 61 |uff, you| can ena|
|000018e0| 62 6c 65 2f 64 69 73 61 | 62 6c 65 2f 63 68 65 63 |ble/disa|ble/chec|
|000018f0| 6b 2f 63 68 61 6e 67 65 | 20 61 20 6d 65 6e 75 20 |k/change| a menu |
|00001900| 69 74 65 6d 20 6a 75 73 | 74 20 62 79 20 73 70 65 |item jus|t by spe|
|00001910| 63 69 66 79 69 6e 67 0d | 74 68 65 20 63 6f 6d 6d |cifying.|the comm|
|00001920| 61 6e 64 20 6e 75 6d 62 | 65 72 2c 20 69 6e 73 74 |and numb|er, inst|
|00001930| 65 61 64 20 6f 66 20 61 | 20 6d 65 6e 75 20 61 6e |ead of a| menu an|
|00001940| 64 20 69 74 65 6d 2e 20 | 54 68 69 73 20 69 73 20 |d item. |This is |
|00001950| 68 61 6e 64 79 20 66 6f | 72 20 64 65 61 6c 69 6e |handy fo|r dealin|
|00001960| 67 20 77 69 74 68 20 63 | 6f 6e 74 72 6f 6c 6c 69 |g with c|ontrolli|
|00001970| 6e 67 0d 64 79 6e 61 6d | 69 63 20 63 6f 6d 6d 61 |ng.dynam|ic comma|
|00001980| 6e 64 73 3a 0d 0d 09 76 | 6f 69 64 20 54 4d 79 57 |nds:...v|oid TMyW|
|00001990| 69 6e 64 6f 77 3a 3a 41 | 63 74 69 76 61 74 65 28 |indow::A|ctivate(|
|000019a0| 42 6f 6f 6c 65 61 6e 20 | 61 63 74 69 76 61 74 69 |Boolean |activati|
|000019b0| 6e 67 29 0d 09 09 7b 0d | 09 09 20 2e 20 2e 20 2e |ng)...{.|.. . . .|
|000019c0| 0d 09 09 69 66 20 28 61 | 63 74 69 76 61 74 69 6e |...if (a|ctivatin|
|000019d0| 67 29 0d 09 09 09 67 4d | 65 6e 75 42 61 72 2d 3e |g)....gM|enuBar->|
|000019e0| 45 6e 61 62 6c 65 43 6f | 6d 6d 61 6e 64 28 63 43 |EnableCo|mmand(cC|
|000019f0| 6c 6f 73 65 2c 74 68 69 | 73 2d 3e 43 61 6e 43 6c |lose,thi|s->CanCl|
|00001a00| 6f 73 65 28 29 29 3b 0d | 09 09 20 2e 20 2e 20 2e |ose());.|.. . . .|
|00001a10| 0d 09 09 7d 0d 09 09 0d | 46 6f 72 20 6e 6f 77 2c |...}....|For now,|
|00001a20| 20 77 65 d5 72 65 20 70 | 72 65 70 65 6e 64 69 6e | we.re p|rependin|
|00001a30| 67 20 63 6f 6d 6d 61 6e | 64 20 63 6f 6e 73 74 61 |g comman|d consta|
|00001a40| 6e 74 73 20 77 69 74 68 | 20 61 20 6c 6f 77 65 72 |nts with| a lower|
|00001a50| 63 61 73 65 20 d2 63 d3 | 2e 20 54 68 69 73 20 69 |case .c.|. This i|
|00001a60| 73 20 74 68 65 20 4d 61 | 63 41 70 70 0d 63 6f 6e |s the Ma|cApp.con|
|00001a70| 76 65 6e 74 69 6f 6e 20 | 28 22 63 22 20 69 73 20 |vention |("c" is |
|00001a80| 66 6f 72 20 63 6f 6d 6d | 61 6e 64 2c 20 61 73 20 |for comm|and, as |
|00001a90| 69 6e 20 63 43 6c 6f 73 | 65 29 2e 20 54 68 69 73 |in cClos|e). This|
|00001aa0| 20 68 61 73 20 61 6e 20 | 75 6e 66 6f 72 74 75 6e | has an |unfortun|
|00001ab0| 61 74 65 20 6f 76 65 72 | 6c 61 70 20 77 69 74 68 |ate over|lap with|
|00001ac0| 0d 74 68 65 20 41 70 70 | 6c 65 45 76 65 6e 74 20 |.the App|leEvent |
|00001ad0| 52 65 67 69 73 74 72 79 | d5 73 20 6e 61 6d 69 6e |Registry|.s namin|
|00001ae0| 67 20 73 63 68 65 6d 65 | 20 28 22 63 22 20 69 73 |g scheme| ("c" is|
|00001af0| 20 66 6f 72 20 63 6c 61 | 73 73 2c 20 61 73 20 69 | for cla|ss, as i|
|00001b00| 6e 20 63 44 6f 63 75 6d | 65 6e 74 20 6f 72 20 63 |n cDocum|ent or c|
|00001b10| 57 69 6e 64 6f 77 29 2e | 0d 0d 45 76 65 6e 74 75 |Window).|..Eventu|
|00001b20| 61 6c 6c 79 2c 20 77 65 | d5 6c 6c 20 70 72 6f 62 |ally, we|.ll prob|
|00001b30| 61 62 6c 79 20 69 6d 70 | 6c 65 6d 65 6e 74 20 61 |ably imp|lement a|
|00001b40| 20 54 43 6f 6d 6d 61 6e | 64 20 63 6c 61 73 73 20 | TComman|d class |
|00001b50| 74 6f 20 62 65 74 74 65 | 72 20 73 75 70 70 6f 72 |to bette|r suppor|
|00001b60| 74 20 55 6e 64 6f 2c 20 | 52 65 64 6f 2c 0d 61 6e |t Undo, |Redo,.an|
|00001b70| 64 20 72 65 63 6f 72 64 | 61 62 69 69 74 79 2e 20 |d record|abiity. |
|00001b80| 53 69 6e 63 65 20 6d 61 | 6e 79 20 73 6d 61 6c 6c |Since ma|ny small|
|00001b90| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 64 6f 6e | applica|tion don|
|00001ba0| d5 74 20 72 65 71 75 69 | 72 65 20 74 68 69 73 2c |.t requi|re this,|
|00001bb0| 20 77 65 d5 76 65 20 64 | 65 63 69 64 65 64 20 74 | we.ve d|ecided t|
|00001bc0| 6f 20 70 75 73 68 0d 74 | 68 69 73 20 6f 66 66 20 |o push.t|his off |
|00001bd0| 74 6f 20 61 6e 6f 74 68 | 65 72 20 64 65 61 64 6c |to anoth|er deadl|
|00001be0| 69 6e 65 2e 0d 0d 0d 57 | 68 61 74 20 64 6f 65 73 |ine....W|hat does|
|00001bf0| 20 74 68 69 73 20 61 6c | 6c 20 6d 65 61 6e 20 66 | this al|l mean f|
|00001c00| 6f 72 20 79 6f 75 3f 0d | 2d 2d 2d 2d 2d 2d 2d 2d |or you?.|--------|
|00001c10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001c20| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 0d 54 68 65 20 62 69 |--------|..The bi|
|00001c30| 67 20 63 68 61 6e 67 65 | 20 66 6f 72 20 61 70 70 |g change| for app|
|00001c40| 6c 69 63 61 74 69 6f 6e | 73 20 62 75 69 6c 74 20 |lication|s built |
|00001c50| 69 6e 20 53 70 72 6f 63 | 6b 65 74 20 69 73 20 74 |in Sproc|ket is t|
|00001c60| 68 61 74 20 48 61 6e 64 | 6c 65 4d 65 6e 75 20 68 |hat Hand|leMenu h|
|00001c70| 61 73 20 6e 6f 77 20 62 | 65 65 6e 20 72 6f 6c 6c |as now b|een roll|
|00001c80| 65 64 0d 69 6e 74 6f 20 | 74 68 65 20 53 70 72 6f |ed.into |the Spro|
|00001c90| 63 6b 65 74 2d 62 61 73 | 65 6c 69 6e 65 2e 0d 0d |cket-bas|eline...|
|00001ca0| 49 66 20 79 6f 75 20 63 | 6f 75 6c 64 20 63 61 72 |If you c|ould car|
|00001cb0| 65 20 6c 65 73 73 20 61 | 62 6f 75 74 20 61 6c 6c |e less a|bout all|
|00001cc0| 20 74 68 69 73 2c 20 79 | 6f 75 20 63 61 6e 20 72 | this, y|ou can r|
|00001cd0| 65 6e 61 6d 65 20 79 6f | 75 72 20 6f 6c 64 20 48 |ename yo|ur old H|
|00001ce0| 61 6e 64 6c 65 4d 65 6e | 75 20 72 6f 75 74 69 6e |andleMen|u routin|
|00001cf0| 65 0d 74 6f 20 62 65 20 | 63 61 6c 6c 65 64 20 48 |e.to be |called H|
|00001d00| 61 6e 64 6c 65 4d 65 6e | 75 53 65 6c 65 63 74 69 |andleMen|uSelecti|
|00001d10| 6f 6e 2c 20 61 6e 64 20 | 67 65 74 20 72 69 64 20 |on, and |get rid |
|00001d20| 6f 66 20 74 68 65 20 66 | 69 72 73 74 20 70 61 72 |of the f|irst par|
|00001d30| 61 6d 65 74 65 72 20 28 | 61 20 54 57 69 6e 64 6f |ameter (|a TWindo|
|00001d40| 77 20 2a 29 3a 0d 0d 76 | 6f 69 64 0d 48 61 6e 64 |w *):..v|oid.Hand|
|00001d50| 6c 65 4d 65 6e 75 53 65 | 6c 65 63 74 69 6f 6e 28 |leMenuSe|lection(|
|00001d60| 4d 65 6e 75 49 44 20 74 | 68 65 4d 65 6e 75 2c 20 |MenuID t|heMenu, |
|00001d70| 4d 65 6e 75 49 74 65 6d | 49 44 20 74 68 65 49 74 |MenuItem|ID theIt|
|00001d80| 65 6d 29 0d 09 7b 0d 09 | 2e 20 2e 20 2e 0d 09 7d |em)..{..|. . ...}|
|00001d90| 0d 0d 4e 6f 74 69 63 65 | 20 74 68 61 74 20 79 6f |..Notice| that yo|
|00001da0| 75 20 64 6f 6e d5 74 20 | 68 61 76 65 20 74 6f 20 |u don.t |have to |
|00001db0| 64 65 61 6c 20 77 69 74 | 68 20 64 65 73 6b 20 61 |deal wit|h desk a|
|00001dc0| 63 63 65 73 73 6f 72 69 | 65 73 20 61 6e 79 20 6d |ccessori|es any m|
|00001dd0| 6f 72 65 2c 20 6f 72 20 | 61 6c 6c 20 74 68 61 74 |ore, or |all that|
|00001de0| 0d d2 69 66 20 28 21 53 | 79 73 74 65 6d 45 64 69 |..if (!S|ystemEdi|
|00001df0| 74 29 d3 20 63 72 75 64 | 20 66 6f 72 20 74 68 65 |t). crud| for the|
|00001e00| 20 45 64 69 74 20 6d 65 | 6e 75 20 61 6e 79 6d 6f | Edit me|nu anymo|
|00001e10| 72 65 2e 0d 0d 0d 49 66 | 20 79 6f 75 20 77 61 6e |re....If| you wan|
|00001e20| 74 20 74 6f 20 75 73 65 | 20 63 6f 6d 6d 61 6e 64 |t to use| command|
|00001e30| 2d 62 61 73 65 64 20 6d | 65 6e 75 73 2c 20 79 6f |-based m|enus, yo|
|00001e40| 75 20 6e 65 65 64 20 74 | 6f 20 61 64 64 20 61 20 |u need t|o add a |
|00001e50| 72 6f 75 74 69 6e 65 20 | 77 68 69 63 68 20 67 65 |routine |which ge|
|00001e60| 74 73 20 63 61 6c 6c 65 | 64 0d 77 68 65 6e 20 61 |ts calle|d.when a|
|00001e70| 20 6d 65 6e 75 20 69 74 | 65 6d 20 77 69 74 68 20 | menu it|em with |
|00001e80| 61 20 63 6f 6d 6d 61 6e | 64 20 69 73 20 73 65 6c |a comman|d is sel|
|00001e90| 65 63 74 65 64 3a 0d 0d | 76 6f 69 64 20 48 61 6e |ected:..|void Han|
|00001ea0| 64 6c 65 4d 65 6e 75 43 | 6f 6d 6d 61 6e 64 28 4d |dleMenuC|ommand(M|
|00001eb0| 65 6e 75 43 6f 6d 6d 61 | 6e 64 49 44 20 63 6f 6d |enuComma|ndID com|
|00001ec0| 6d 61 6e 64 29 0d 09 7b | 0d 09 73 77 69 74 63 68 |mand)..{|..switch|
|00001ed0| 20 28 63 6f 6d 6d 61 6e | 64 29 0d 09 09 7b 0d 09 | (comman|d)...{..|
|00001ee0| 09 2e 20 2e 20 2e 0d 09 | 09 63 61 73 65 09 63 41 |.. . ...|.case.cA|
|00001ef0| 62 6f 75 74 3a 0d 09 09 | 09 4d 79 43 6f 6f 6c 41 |bout:...|.MyCoolA|
|00001f00| 62 6f 75 74 42 6f 78 28 | 29 3b 0d 09 09 09 62 72 |boutBox(|);....br|
|00001f10| 65 61 6b 3b 0d 09 09 09 | 0d 09 09 63 61 73 65 09 |eak;....|...case.|
|00001f20| 63 4d 79 43 6f 6f 6c 43 | 6f 6d 6d 61 6e 64 3a 0d |cMyCoolC|ommand:.|
|00001f30| 09 09 09 44 6f 4d 79 43 | 6f 6f 6c 43 6f 6d 6d 61 |...DoMyC|oolComma|
|00001f40| 6e 64 28 29 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d |nd();...|.break;.|
|00001f50| 09 09 2e 20 2e 20 2e 0d | 09 09 7d 0d 09 7d 0d 0d |... . ..|..}..}..|
|00001f60| 5b 4e 4f 54 45 3a 09 54 | 6f 20 6d 61 6b 65 20 79 |[NOTE:.T|o make y|
|00001f70| 6f 75 72 20 6c 69 66 65 | 20 61 20 62 69 74 20 65 |our life| a bit e|
|00001f80| 61 73 69 65 72 2c 20 53 | 70 72 6f 63 6b 65 74 20 |asier, S|procket |
|00001f90| 77 69 6c 6c 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |will aut|omatical|
|00001fa0| 6c 79 20 69 6e 76 6f 6b | 65 20 51 75 69 74 41 70 |ly invok|e QuitAp|
|00001fb0| 70 6c 69 63 61 74 69 6f | 6e 28 29 0d 77 68 65 6e |plicatio|n().when|
|00001fc0| 20 61 20 6d 65 6e 75 20 | 69 73 20 73 65 6c 65 63 | a menu |is selec|
|00001fd0| 74 65 64 20 77 69 74 68 | 20 61 20 63 6f 6d 6d 61 |ted with| a comma|
|00001fe0| 6e 64 20 6e 75 6d 62 65 | 72 20 3d 3d 20 63 51 75 |nd numbe|r == cQu|
|00001ff0| 69 74 2e 5d 0d 0d 0d 55 | 6e 6c 69 6b 65 20 65 61 |it.]...U|nlike ea|
|00002000| 72 6c 69 65 72 20 76 65 | 72 73 69 6f 6e 73 20 6f |rlier ve|rsions o|
|00002010| 66 20 53 70 72 6f 63 6b | 65 74 2c 20 74 68 65 72 |f Sprock|et, ther|
|00002020| 65 20 69 73 20 6e 6f 20 | 6e 65 65 64 20 74 6f 20 |e is no |need to |
|00002030| 68 61 6e 64 6c 65 20 65 | 76 65 72 79 20 63 6f 6d |handle e|very com|
|00002040| 6d 61 6e 64 20 69 6e 20 | 74 68 65 73 65 0d 66 75 |mand in |these.fu|
|00002050| 6e 63 74 69 6f 6e 73 2e | 20 20 50 61 72 74 20 6f |nctions.| Part o|
|00002060| 66 20 74 68 69 73 20 69 | 73 20 64 75 65 20 74 6f |f this i|s due to|
|00002070| 20 53 70 72 6f 63 6b 65 | 74 20 67 65 74 74 69 6e | Sprocke|t gettin|
|00002080| 67 20 61 20 62 69 74 20 | 73 6d 61 72 74 65 72 20 |g a bit |smarter |
|00002090| 77 68 65 6e 20 64 65 61 | 6c 69 6e 67 20 77 69 74 |when dea|ling wit|
|000020a0| 68 0d 77 69 6e 64 6f 77 | 73 20 61 6e 64 20 6d 65 |h.window|s and me|
|000020b0| 6e 75 20 68 61 6e 64 6c | 69 6e 67 2e 20 54 68 72 |nu handl|ing. Thr|
|000020c0| 65 65 20 6e 65 77 20 6d | 65 74 68 6f 64 73 20 68 |ee new m|ethods h|
|000020d0| 61 76 65 20 62 65 65 6e | 20 61 64 64 65 64 20 74 |ave been| added t|
|000020e0| 6f 20 54 57 69 6e 64 6f | 77 3a 0d 0d 09 63 6c 61 |o TWindo|w:...cla|
|000020f0| 73 73 20 54 57 69 6e 64 | 6f 77 0d 09 09 7b 0d 09 |ss TWind|ow...{..|
|00002100| 09 2e 20 2e 20 2e 0d 09 | 09 76 69 72 74 75 61 6c |.. . ...|.virtual|
|00002110| 09 76 6f 69 64 09 09 41 | 64 6a 75 73 74 4d 65 6e |.void..A|djustMen|
|00002120| 75 73 42 65 66 6f 72 65 | 4d 65 6e 75 53 65 6c 65 |usBefore|MenuSele|
|00002130| 63 74 69 6f 6e 28 76 6f | 69 64 29 3b 0d 09 09 76 |ction(vo|id);...v|
|00002140| 69 72 74 75 61 6c 20 76 | 6f 69 64 09 09 44 6f 4d |irtual v|oid..DoM|
|00002150| 65 6e 75 53 65 6c 65 63 | 74 69 6f 6e 28 73 68 6f |enuSelec|tion(sho|
|00002160| 72 74 20 6d 65 6e 75 2c | 20 73 68 6f 72 74 20 69 |rt menu,| short i|
|00002170| 74 65 6d 29 3b 0d 09 09 | 76 69 72 74 75 61 6c 20 |tem);...|virtual |
|00002180| 42 6f 6f 6c 65 61 6e 09 | 09 44 6f 4d 65 6e 75 43 |Boolean.|.DoMenuC|
|00002190| 6f 6d 6d 61 6e 64 28 4d | 65 6e 75 43 6f 6d 6d 61 |ommand(M|enuComma|
|000021a0| 6e 64 49 44 20 6d 65 6e | 75 43 6f 6d 6d 61 6e 64 |ndID men|uCommand|
|000021b0| 29 3b 0d 09 09 2e 20 2e | 20 2e 0d 09 09 7d 3b 0d |);.... .| ....};.|
|000021c0| 0d 41 64 6a 75 73 74 4d | 65 6e 75 73 42 65 66 6f |.AdjustM|enusBefo|
|000021d0| 72 65 4d 65 6e 75 53 65 | 6c 65 63 74 69 6f 6e 2c |reMenuSe|lection,|
|000021e0| 20 69 73 20 61 20 68 6f | 6f 6b 20 6d 65 74 68 6f | is a ho|ok metho|
|000021f0| 64 20 68 61 73 20 61 6c | 73 6f 20 62 65 65 6e 20 |d has al|so been |
|00002200| 70 72 6f 76 69 64 65 64 | 20 74 6f 20 61 6c 6c 6f |provided| to allo|
|00002210| 77 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 0d 74 |w your p|rogram.t|
|00002220| 6f 20 65 6e 61 62 6c 65 | 20 61 6e 64 20 64 69 73 |o enable| and dis|
|00002230| 61 62 6c 65 20 6d 65 6e | 75 20 69 74 65 6d 73 20 |able men|u items |
|00002240| 6a 75 73 74 20 62 65 66 | 6f 72 65 20 61 20 4d 65 |just bef|ore a Me|
|00002250| 6e 75 53 65 6c 65 63 74 | 20 6f 72 20 4d 65 6e 75 |nuSelect| or Menu|
|00002260| 4b 65 79 20 63 61 6c 6c | 20 69 73 20 6d 61 64 65 |Key call| is made|
|00002270| 2e 20 54 68 69 73 20 69 | 73 0d 75 73 65 66 75 6c |. This i|s.useful|
|00002280| 20 66 6f 72 20 63 68 65 | 63 6b 69 6e 67 20 74 68 | for che|cking th|
|00002290| 65 20 63 75 72 72 65 6e | 74 20 66 6f 6e 74 20 69 |e curren|t font i|
|000022a0| 6e 20 74 68 65 20 46 6f | 6e 74 73 20 6d 65 6e 75 |n the Fo|nts menu|
|000022b0| 2c 20 65 74 63 2e 0d 0d | 53 70 65 61 6b 69 6e 67 |, etc...|Speaking|
|000022c0| 20 6f 66 20 74 68 65 20 | 46 6f 6e 74 20 6d 65 6e | of the |Font men|
|000022d0| 75 2c 20 74 68 65 20 44 | 6f 4d 65 6e 75 53 65 6c |u, the D|oMenuSel|
|000022e0| 65 63 74 69 6f 6e 20 68 | 6f 6f 6b 73 20 69 73 20 |ection h|ooks is |
|000022f0| 70 72 6f 76 69 64 65 64 | 20 66 6f 72 20 68 61 6e |provided| for han|
|00002300| 64 6c 69 6e 67 20 6d 65 | 6e 75 20 69 74 65 6d 73 |dling me|nu items|
|00002310| 0d 77 69 74 68 6f 75 74 | 20 72 65 67 69 73 74 65 |.without| registe|
|00002320| 72 65 64 20 63 6f 6d 6d | 61 6e 64 73 2e 0d 0d 44 |red comm|ands...D|
|00002330| 6f 4d 65 6e 75 43 6f 6d | 6d 61 6e 64 20 69 73 20 |oMenuCom|mand is |
|00002340| 63 61 6c 6c 65 64 20 74 | 6f 20 70 61 73 73 20 6d |called t|o pass m|
|00002350| 65 6e 75 20 63 6f 6d 6d | 61 6e 64 73 20 64 69 72 |enu comm|ands dir|
|00002360| 65 63 74 6c 79 20 74 6f | 20 74 68 65 20 66 72 6f |ectly to| the fro|
|00002370| 6e 74 6d 6f 73 74 20 6e | 6f 6e 2d 66 6c 6f 61 74 |ntmost n|on-float|
|00002380| 69 6e 67 20 77 69 6e 64 | 6f 77 20 76 69 61 0d 61 |ing wind|ow via.a|
|00002390| 20 44 6f 4d 65 6e 75 43 | 6f 6d 6d 61 6e 64 20 6d | DoMenuC|ommand m|
|000023a0| 65 74 68 6f 64 2e 20 41 | 6e 6f 74 68 65 72 20 6e |ethod. A|nother n|
|000023b0| 69 66 74 79 20 63 68 61 | 6e 67 65 20 69 73 20 74 |ifty cha|nge is t|
|000023c0| 6f 20 6d 61 6b 65 20 54 | 57 69 6e 64 6f 77 20 64 |o make T|Window d|
|000023d0| 65 61 6c 20 77 69 74 68 | 20 63 6c 6f 73 69 6e 67 |eal with| closing|
|000023e0| 20 61 20 77 69 6e 64 6f | 77 0d 66 72 6f 6d 20 74 | a windo|w.from t|
|000023f0| 68 65 20 6d 65 6e 75 62 | 61 72 3a 0d 0d 42 6f 6f |he menub|ar:..Boo|
|00002400| 6c 65 61 6e 0d 54 57 69 | 6e 64 6f 77 3a 3a 44 6f |lean.TWi|ndow::Do|
|00002410| 4d 65 6e 75 43 6f 6d 6d | 61 6e 64 28 4d 65 6e 75 |MenuComm|and(Menu|
|00002420| 43 6f 6d 6d 61 6e 64 49 | 44 20 63 6f 6d 6d 61 6e |CommandI|D comman|
|00002430| 64 29 0d 09 7b 0d 09 2e | 20 2e 20 2e 0d 09 69 66 |d)..{...| . ...if|
|00002440| 20 28 63 6f 6d 6d 61 6e | 64 20 3d 3d 20 63 43 6c | (comman|d == cCl|
|00002450| 6f 73 65 29 0d 09 09 7b | 0d 09 09 69 66 20 28 74 |ose)...{|...if (t|
|00002460| 68 69 73 2d 3e 43 6c 6f | 73 65 28 29 20 26 26 20 |his->Clo|se() && |
|00002470| 74 68 69 73 2d 3e 44 65 | 6c 65 74 65 41 66 74 65 |this->De|leteAfte|
|00002480| 72 43 6c 6f 73 65 28 29 | 29 0d 09 09 09 64 65 6c |rClose()|)....del|
|00002490| 65 74 65 20 74 68 69 73 | 3b 0d 09 09 72 65 74 75 |ete this|;...retu|
|000024a0| 72 6e 20 74 72 75 65 3b | 0d 09 09 7d 0d 09 2e 20 |rn true;|...}... |
|000024b0| 2e 20 2e 0d 09 7d 0d 0d | 49 6e 20 6f 72 64 65 72 |. ...}..|In order|
|000024c0| 20 74 6f 20 67 65 74 20 | 74 68 69 73 20 62 65 68 | to get |this beh|
|000024d0| 61 76 69 6f 72 20 79 6f | 75 20 73 68 6f 75 6c 64 |avior yo|u should|
|000024e0| 20 63 61 6c 6c 20 74 68 | 72 6f 75 67 68 20 54 57 | call th|rough TW|
|000024f0| 69 6e 64 6f 77 3a 3a 43 | 6c 6f 73 65 28 29 20 66 |indow::C|lose() f|
|00002500| 72 6f 6d 20 77 69 74 68 | 69 6e 20 79 6f 75 72 20 |rom with|in your |
|00002510| 6f 77 6e 0d 64 65 72 69 | 76 65 64 20 63 6c 61 73 |own.deri|ved clas|
|00002520| 73 65 73 2e 0d 0d 4f 6e | 65 20 74 68 69 6e 67 20 |ses...On|e thing |
|00002530| 74 6f 20 6e 6f 74 65 20 | 69 73 20 74 68 61 74 20 |to note |is that |
|00002540| 73 69 6e 63 65 20 6d 65 | 6e 75 20 63 6f 6d 6d 61 |since me|nu comma|
|00002550| 6e 64 73 20 61 72 65 20 | 72 6f 75 74 65 64 20 74 |nds are |routed t|
|00002560| 68 72 6f 75 67 68 20 6e | 6f 6e 2d 66 6c 6f 61 74 |hrough n|on-float|
|00002570| 69 6e 67 20 28 65 2e 67 | 2e 2c 20 64 6f 63 75 6d |ing (e.g|., docum|
|00002580| 65 6e 74 29 0d 77 69 6e | 64 6f 77 73 20 6f 6e 6c |ent).win|dows onl|
|00002590| 79 2c 20 79 6f 75 20 6d | 75 73 74 20 68 61 6e 64 |y, you m|ust hand|
|000025a0| 6c 65 20 6d 65 6e 75 20 | 63 6f 6d 6d 61 6e 64 73 |le menu |commands|
|000025b0| 20 66 6f 72 20 77 69 6e | 64 6f 69 64 73 20 69 6e | for win|doids in|
|000025c0| 73 69 64 65 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |side you|r applic|
|000025d0| 61 74 69 6f 6e d5 73 0d | 48 61 6e 64 6c 65 4d 65 |ation.s.|HandleMe|
|000025e0| 6e 75 43 6f 6d 6d 61 6e | 64 20 66 75 6e 63 74 69 |nuComman|d functi|
|000025f0| 6f 6e 2e 0d 0d 0d 54 44 | 6f 63 75 6d 65 6e 74 0d |on....TD|ocument.|
|00002600| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0d 57 6f 72 6b 20 |========|=..Work |
|00002610| 6f 6e 20 61 20 72 65 61 | 6c 20 54 44 6f 63 75 6d |on a rea|l TDocum|
|00002620| 65 6e 74 20 63 6c 61 73 | 73 20 68 61 73 20 62 65 |ent clas|s has be|
|00002630| 67 75 6e 2c 20 61 6e 64 | 20 61 73 20 61 20 72 65 |gun, and| as a re|
|00002640| 73 75 6c 74 20 53 74 61 | 6e 64 61 72 64 43 6c 6f |sult Sta|ndardClo|
|00002650| 73 65 44 6f 63 75 6d 65 | 6e 74 20 69 73 20 69 6e |seDocume|nt is in|
|00002660| 0d 6c 69 6d 62 6f 2e 20 | 49 66 20 79 6f 75 20 6e |.limbo. |If you n|
|00002670| 65 65 64 20 74 6f 20 75 | 73 65 20 74 68 69 73 20 |eed to u|se this |
|00002680| 69 6e 20 74 68 65 20 73 | 68 6f 72 74 20 74 65 72 |in the s|hort ter|
|00002690| 6d 2c 20 49 d5 64 20 73 | 75 67 67 65 73 74 20 6a |m, I.d s|uggest j|
|000026a0| 75 73 74 20 75 73 69 6e | 67 20 74 68 65 20 6f 6c |ust usin|g the ol|
|000026b0| 64 20 63 6f 64 65 2e 0d | 0d 41 20 63 6f 75 70 6c |d code..|.A coupl|
|000026c0| 65 20 6f 66 20 75 73 20 | 77 69 6c 6c 20 62 65 20 |e of us |will be |
|000026d0| 64 6f 69 6e 67 20 73 6f | 6d 65 20 62 72 61 69 6e |doing so|me brain|
|000026e0| 73 74 6f 72 6d 69 6e 67 | 20 61 62 6f 75 74 20 74 |storming| about t|
|000026f0| 68 69 73 20 6f 6e 65 2e | 20 20 57 65 20 64 6f 6e |his one.| We don|
|00002700| d5 74 20 77 61 6e 74 20 | 70 65 6f 70 6c 65 0d 74 |.t want |people.t|
|00002710| 6f 20 62 65 20 66 6f 72 | 63 65 64 20 69 6e 74 6f |o be for|ced into|
|00002720| 20 6d 61 6b 69 6e 67 20 | 74 68 65 69 72 20 61 70 | making |their ap|
|00002730| 70 6c 69 63 61 74 69 6f | 6e 73 20 d2 64 6f 63 75 |plicatio|ns .docu|
|00002740| 6d 65 6e 74 2d 62 61 73 | 65 64 d3 2e 20 54 68 69 |ment-bas|ed.. Thi|
|00002750| 73 20 69 73 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 |s is one| of the |
|00002760| 62 69 67 0d 6c 69 6d 69 | 74 61 74 69 6f 6e 73 20 |big.limi|tations |
|00002770| 6f 66 20 4d 61 63 41 70 | 70 2c 20 61 6e 64 20 65 |of MacAp|p, and e|
|00002780| 76 65 6e 20 4f 70 65 6e | 44 6f 63 2d 2d 20 62 65 |ven Open|Doc-- be|
|00002790| 69 6e 67 20 64 6f 63 75 | 6d 65 6e 74 2d 63 65 6e |ing docu|ment-cen|
|000027a0| 74 72 69 63 20 74 65 6e | 64 73 20 74 6f 20 61 64 |tric ten|ds to ad|
|000027b0| 64 20 65 78 74 72 61 0d | 63 6c 61 73 73 65 73 20 |d extra.|classes |
|000027c0| 61 6e 64 20 73 75 70 70 | 6f 72 74 20 72 6f 75 74 |and supp|ort rout|
|000027d0| 69 6e 65 73 20 74 68 61 | 74 20 61 72 65 6e d5 74 |ines tha|t aren.t|
|000027e0| 20 6e 65 65 64 65 64 20 | 66 6f 72 20 75 74 69 6c | needed |for util|
|000027f0| 69 74 79 20 66 75 6e 63 | 74 69 6f 6e 73 2c 20 63 |ity func|tions, c|
|00002800| 6f 6f 6c 20 68 61 63 6b | 73 2c 20 6f 72 0d 76 69 |ool hack|s, or.vi|
|00002810| 64 65 6f 20 67 61 6d 65 | 73 2e 0d 0d 0d 42 75 67 |deo game|s....Bug|
|00002820| 73 3f 20 57 68 61 74 20 | 62 75 67 73 3f 0d 3d 3d |s? What |bugs?.==|
|00002830| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0d 0d |========|======..|
|00002840| 57 65 d5 76 65 20 61 6c | 73 6f 20 6d 61 6e 61 67 |We.ve al|so manag|
|00002850| 65 64 20 74 6f 20 66 69 | 78 20 61 20 6e 75 6d 62 |ed to fi|x a numb|
|00002860| 65 72 20 6f 66 20 62 75 | 67 73 20 69 6e 20 53 70 |er of bu|gs in Sp|
|00002870| 72 6f 63 6b 65 74 3a 0d | 0d 09 44 61 76 65 20 4d |rocket:.|..Dave M|
|00002880| 61 72 6b 09 09 09 3a 09 | 44 65 61 6c 74 20 77 69 |ark...:.|Dealt wi|
|00002890| 74 68 20 65 61 72 6c 79 | 20 62 75 67 73 20 61 6e |th early| bugs an|
|000028a0| 64 20 68 65 6c 70 65 64 | 20 6d 61 6b 65 20 74 68 |d helped| make th|
|000028b0| 69 6e 67 73 20 65 61 73 | 69 65 72 0d 09 44 61 76 |ings eas|ier..Dav|
|000028c0| 69 64 20 64 65 6e 42 6f | 65 72 09 09 3a 09 57 69 |id denBo|er..:.Wi|
|000028d0| 6e 64 6f 77 20 61 63 74 | 69 76 61 74 69 6f 6e 20 |ndow act|ivation |
|000028e0| 62 75 67 73 20 69 6e 20 | 54 57 69 6e 64 6f 77 3a |bugs in |TWindow:|
|000028f0| 3a 53 65 6c 65 63 74 0d | 09 4c 65 6f 6e 61 72 64 |:Select.|.Leonard|
|00002900| 20 52 6f 73 65 6e 74 68 | 61 6c 09 3a 09 42 65 74 | Rosenth|al.:.Bet|
|00002910| 74 65 72 20 54 53 4d 20 | 73 75 70 70 6f 72 74 0d |ter TSM |support.|
|00002920| 09 52 61 6e 64 79 20 54 | 68 65 6c 65 6e 09 09 3a |.Randy T|helen..:|
|00002930| 09 54 68 72 65 61 64 20 | 70 65 72 66 6f 72 6d 61 |.Thread |performa|
|00002940| 6e 63 65 20 77 68 65 6e | 20 71 75 69 74 74 69 6e |nce when| quittin|
|00002950| 67 20 26 20 53 70 6c 61 | 73 68 57 69 6e 64 6f 77 |g & Spla|shWindow|
|00002960| 20 62 75 67 73 0d 09 47 | 61 72 79 20 50 6f 77 65 | bugs..G|ary Powe|
|00002970| 6c 6c 09 09 09 3a 09 54 | 44 69 61 6c 6f 67 57 69 |ll...:.T|DialogWi|
|00002980| 6e 64 6f 77 2c 20 44 69 | 61 6c 6f 67 55 74 69 6c |ndow, Di|alogUtil|
|00002990| 73 2c 20 43 2b 2b 20 64 | 69 73 63 69 70 6c 69 6e |s, C++ d|isciplin|
|000029a0| 65 73 0d 0d 53 6f 6d 65 | 20 6f 66 20 74 68 65 20 |es..Some| of the |
|000029b0| 47 58 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |GX initi|alizatio|
|000029c0| 6e 20 68 61 73 20 62 65 | 65 6e 20 72 65 61 72 72 |n has be|en rearr|
|000029d0| 61 6e 67 65 64 20 61 73 | 20 73 75 67 67 65 73 74 |anged as| suggest|
|000029e0| 65 64 20 62 79 20 4a 6f | 6e 20 53 75 6d 6d 65 72 |ed by Jo|n Summer|
|000029f0| 73 20 77 68 6f 20 75 73 | 65 64 0d 53 70 72 6f 63 |s who us|ed.Sproc|
|00002a00| 6b 65 74 20 74 6f 20 62 | 75 69 6c 64 20 61 20 50 |ket to b|uild a P|
|00002a10| 44 44 20 28 70 6f 72 74 | 61 62 6c 65 20 64 69 67 |DD (port|able dig|
|00002a20| 69 74 61 6c 20 64 6f 63 | 75 6d 65 6e 74 29 20 76 |ital doc|ument) v|
|00002a30| 69 65 77 65 72 2e 0d 0d | 41 20 64 6f 75 62 6c 65 |iewer...|A double|
|00002a40| 2d 64 69 73 70 6f 73 65 | 20 70 72 6f 62 6c 65 6d |-dispose| problem|
|00002a50| 20 77 69 74 68 20 74 68 | 65 20 53 70 6c 61 73 68 | with th|e Splash|
|00002a60| 57 69 6e 64 6f 77 20 77 | 61 73 20 66 69 78 65 64 |Window w|as fixed|
|00002a70| 2c 20 61 6e 64 20 77 65 | 20 65 76 65 6e 20 64 65 |, and we| even de|
|00002a80| 63 69 64 65 64 20 74 6f | 20 73 75 70 70 6f 72 74 |cided to| support|
|00002a90| 0d d2 65 6d 70 74 79 d3 | 20 73 70 6c 61 73 68 20 |..empty.| splash |
|00002aa0| 77 69 6e 64 6f 77 73 2e | 0d 0d 0d 57 68 61 74 20 |windows.|...What |
|00002ab0| 74 6f 20 65 78 70 65 63 | 74 20 69 6e 20 74 68 65 |to expec|t in the|
|00002ac0| 20 66 75 74 75 72 65 3a | 0d 3d 3d 3d 3d 3d 3d 3d | future:|.=======|
|00002ad0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002ae0| 3d 3d 3d 3d 3d 3d 0d 0d | 52 65 61 6c 20 64 6f 63 |======..|Real doc|
|00002af0| 75 6d 65 6e 74 73 20 61 | 6e 64 20 47 58 2d 73 61 |uments a|nd GX-sa|
|00002b00| 76 76 79 20 70 72 69 6e | 74 69 6e 67 0d 54 68 72 |vvy prin|ting.Thr|
|00002b10| 65 61 64 2d 73 61 66 65 | 20 65 78 63 65 70 74 69 |ead-safe| excepti|
|00002b20| 6f 6e 20 68 61 6e 64 6c | 69 6e 67 20 28 74 68 65 |on handl|ing (the|
|00002b30| 20 6e 65 78 74 20 74 68 | 69 6e 67 20 72 65 71 75 | next th|ing requ|
|00002b40| 69 72 65 73 20 69 74 29 | 0d 41 70 70 6c 65 45 76 |ires it)|.AppleEv|
|00002b50| 65 6e 74 20 4f 62 6a 65 | 63 74 20 53 75 70 70 6f |ent Obje|ct Suppo|
|00002b60| 72 74 20 66 6f 72 20 53 | 63 72 69 70 74 69 6e 67 |rt for S|cripting|
|00002b70| 0d 41 20 50 6c 75 67 2d | 69 6e 20 61 72 63 68 69 |.A Plug-|in archi|
|00002b80| 74 65 63 74 75 72 65 20 | 28 77 6f 75 6c 64 6e d5 |tecture |(wouldn.|
|00002b90| 74 20 54 48 41 54 20 62 | 65 20 61 20 63 6f 6f 6c |t THAT b|e a cool|
|00002ba0| 20 61 72 74 69 63 6c 65 | 20 66 6f 72 20 73 6f 6d | article| for som|
|00002bb0| 65 6f 6e 65 20 74 6f 20 | 77 72 69 74 65 3f 29 0d |eone to |write?).|
|00002bc0| 45 6d 62 65 64 64 69 6e | 67 20 4f 70 65 6e 44 6f |Embeddin|g OpenDo|
|00002bd0| 63 20 61 6e 64 2f 6f 72 | 20 4f 4c 45 20 74 68 69 |c and/or| OLE thi|
|00002be0| 6e 67 73 20 69 6e 20 53 | 70 72 6f 63 6b 65 74 20 |ngs in S|procket |
|00002bf0| 77 69 6e 64 6f 77 73 0d | 0d 0d 23 23 23 23 23 23 |windows.|..######|
|00002c00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002c10| 23 23 23 0d 43 48 41 4e | 47 45 20 48 49 53 54 4f |###.CHAN|GE HISTO|
|00002c20| 52 59 20 66 6f 72 20 31 | 2e 30 64 32 33 0d 23 23 |RY for 1|.0d23.##|
|00002c30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002c40| 23 23 23 23 23 23 23 0d | 0d 54 68 65 20 63 68 61 |#######.|.The cha|
|00002c50| 6e 67 65 73 20 69 6e 20 | 64 65 74 61 69 6c 20 28 |nges in |detail (|
|00002c60| 6d 6f 72 65 20 6f 72 20 | 6c 65 73 73 29 3a 0d 0d |more or |less):..|
|00002c70| 20 20 20 20 41 45 54 68 | 72 65 61 64 73 2e 63 2c | AETh|reads.c,|
|00002c80| 31 0d 20 20 20 20 41 45 | 54 68 72 65 61 64 73 2e |1. AE|Threads.|
|00002c90| 68 2c 31 0d 20 20 20 20 | 46 75 74 75 72 65 73 2e |h,1. |Futures.|
|00002ca0| 63 2c 31 0d 20 20 20 20 | 46 75 74 75 72 65 73 2e |c,1. |Futures.|
|00002cb0| 68 2c 31 0d 09 09 41 64 | 64 65 64 20 53 74 65 76 |h,1...Ad|ded Stev|
|00002cc0| 65 20 53 69 73 61 6b d5 | 73 20 63 68 61 6e 67 65 |e Sisak.|s change|
|00002cd0| 73 20 74 6f 20 53 70 72 | 6f 63 6b 65 74 20 74 6f |s to Spr|ocket to|
|00002ce0| 20 73 75 70 70 6f 72 74 | 20 69 6e 73 74 61 6c 6c | support| install|
|00002cf0| 69 6e 67 20 74 68 72 65 | 61 64 65 64 0d 09 09 41 |ing thre|aded...A|
|00002d00| 70 70 6c 65 45 76 65 6e | 74 20 68 61 6e 64 6c 65 |ppleEven|t handle|
|00002d10| 72 73 20 61 6e 64 20 46 | 75 74 75 72 65 73 2e 0d |rs and F|utures..|
|00002d20| 09 09 0d 20 20 20 20 44 | 69 61 6c 6f 67 57 69 6e |... D|ialogWin|
|00002d30| 64 6f 77 2e 68 2c 34 0d | 20 20 20 20 44 69 61 6c |dow.h,4.| Dial|
|00002d40| 6f 67 57 69 6e 64 6f 77 | 2e 63 70 2c 38 0d 09 09 |ogWindow|.cp,8...|
|00002d50| 41 64 61 70 74 20 74 6f | 20 6e 65 77 20 4d 65 6e |Adapt to| new Men|
|00002d60| 75 20 68 61 6e 64 6c 69 | 6e 67 20 6d 65 74 68 6f |u handli|ng metho|
|00002d70| 64 6f 6c 6f 67 79 2e 20 | 41 6c 73 6f 20 70 72 6f |dology. |Also pro|
|00002d80| 74 65 63 74 65 64 20 74 | 68 65 20 63 6f 6e 73 74 |tected t|he const|
|00002d90| 72 75 63 74 6f 72 2c 0d | 09 09 61 73 20 74 68 69 |ructor,.|..as thi|
|00002da0| 73 20 69 73 20 72 65 61 | 6c 6c 79 20 61 6e 20 61 |s is rea|lly an a|
|00002db0| 62 73 74 72 61 63 74 20 | 63 6c 61 73 73 2e 0d 0d |bstract |class...|
|00002dc0| 09 09 41 6c 73 6f 20 66 | 69 78 65 64 20 62 75 67 |..Also f|ixed bug|
|00002dd0| 20 77 68 65 72 65 20 77 | 65 20 77 65 72 65 6e d5 | where w|e weren.|
|00002de0| 74 20 64 69 73 70 6f 73 | 69 6e 67 20 6f 66 20 54 |t dispos|ing of T|
|00002df0| 44 69 61 6c 6f 67 57 69 | 6e 64 6f 77 73 20 75 73 |DialogWi|ndows us|
|00002e00| 69 6e 67 20 44 69 73 70 | 6f 73 65 44 69 61 6c 6f |ing Disp|oseDialo|
|00002e10| 67 2e 0d 0d 20 20 20 20 | 4d 65 6e 75 42 61 72 2e |g... |MenuBar.|
|00002e20| 68 2c 33 0d 20 20 20 20 | 4d 65 6e 75 42 61 72 2e |h,3. |MenuBar.|
|00002e30| 63 70 2c 33 0d 09 09 41 | 64 64 65 64 20 73 75 70 |cp,3...A|dded sup|
|00002e40| 70 6f 72 74 20 66 6f 72 | 20 43 4d 4e 55 20 72 65 |port for| CMNU re|
|00002e50| 73 6f 75 72 63 65 73 2c | 20 77 68 69 63 68 20 61 |sources,| which a|
|00002e60| 6c 6c 6f 77 73 20 66 6f | 72 20 6d 65 6e 75 20 63 |llows fo|r menu c|
|00002e70| 6f 6d 6d 61 6e 64 73 20 | 74 6f 20 61 75 74 6f 6d |ommands |to autom|
|00002e80| 61 74 69 63 61 6c 6c 79 | 0d 09 09 62 65 20 72 65 |atically|...be re|
|00002e90| 67 69 73 74 65 72 65 64 | 20 77 69 74 68 6f 75 74 |gistered| without|
|00002ea0| 20 63 6f 64 65 20 6d 6f | 64 69 66 69 63 61 74 69 | code mo|dificati|
|00002eb0| 6f 6e 2e 20 28 63 6f 6f | 6c 2c 20 65 68 3f 29 20 |on. (coo|l, eh?) |
|00002ec0| 57 65 20 64 6f 6e d5 74 | 20 79 65 74 20 73 75 70 |We don.t| yet sup|
|00002ed0| 70 6f 72 74 20 27 6d 63 | 74 62 27 0d 09 09 72 65 |port 'mc|tb'...re|
|00002ee0| 73 6f 75 72 63 65 73 20 | 66 6f 72 20 74 68 65 73 |sources |for thes|
|00002ef0| 65 20 74 79 70 65 73 2e | 0d 0d 20 20 20 20 53 70 |e types.|.. Sp|
|00002f00| 72 6f 63 6b 65 74 2e 68 | 2c 31 32 0d 09 09 41 64 |rocket.h|,12...Ad|
|00002f10| 64 65 64 20 63 50 72 65 | 66 65 72 65 6e 63 65 73 |ded cPre|ferences|
|00002f20| 20 63 6f 6d 6d 61 6e 64 | 20 63 6f 6e 73 74 61 6e | command| constan|
|00002f30| 74 2e 0d 0d 20 20 20 20 | 44 69 61 6c 6f 67 55 74 |t... |DialogUt|
|00002f40| 69 6c 73 2e 63 70 2c 38 | 0d 09 09 47 61 72 79 20 |ils.cp,8|...Gary |
|00002f50| 50 6f 77 65 6c 6c 20 69 | 73 20 61 20 62 75 67 20 |Powell i|s a bug |
|00002f60| 66 69 6e 64 69 6e 67 20 | 67 6f 64 2e 20 46 69 78 |finding |god. Fix|
|00002f70| 20 61 6e 20 75 6e 69 74 | 69 61 6c 69 7a 65 64 20 | an unit|ialized |
|00002f80| 76 61 72 69 61 62 6c 65 | 20 70 72 6f 62 6c 65 6d |variable| problem|
|00002f90| 20 69 6e 20 45 72 72 6f | 72 41 6c 65 72 74 2e 0d | in Erro|rAlert..|
|00002fa0| 0d 20 20 20 20 53 70 6c | 61 73 68 57 69 6e 64 6f |. Spl|ashWindo|
|00002fb0| 77 2e 63 70 2c 38 0d 09 | 09 46 69 78 20 61 20 64 |w.cp,8..|.Fix a d|
|00002fc0| 6f 75 62 6c 65 2d 64 69 | 73 70 6f 73 65 20 62 75 |ouble-di|spose bu|
|00002fd0| 67 3a 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 6e |g: there| is no n|
|00002fe0| 65 65 64 20 74 6f 20 67 | 65 74 20 72 69 64 20 6f |eed to g|et rid o|
|00002ff0| 66 20 61 20 77 69 6e 64 | 6f 77 d5 73 20 70 69 63 |f a wind|ow.s pic|
|00003000| 74 75 72 65 2e 0d 09 09 | 44 69 73 70 6f 73 65 57 |ture....|DisposeW|
|00003010| 69 6e 64 6f 77 20 77 69 | 6c 6c 20 61 6c 72 65 61 |indow wi|ll alrea|
|00003020| 64 79 20 4b 69 6c 6c 50 | 69 63 74 75 72 65 20 69 |dy KillP|icture i|
|00003030| 74 2e 0d 0d 20 20 20 20 | 53 70 72 6f 63 6b 65 74 |t... |Sprocket|
|00003040| 4d 61 69 6e 2e 63 70 2c | 31 37 0d 09 09 55 73 65 |Main.cp,|17...Use|
|00003050| 20 6f 75 72 20 6f 77 6e | 20 73 70 65 63 69 61 6c | our own| special|
|00003060| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 47 65 74 4e | version| of GetN|
|00003070| 65 77 4d 65 6e 75 42 61 | 72 20 77 68 69 63 68 20 |ewMenuBa|r which |
|00003080| 73 68 6f 75 6c 64 20 61 | 75 74 6f 6d 61 74 69 63 |should a|utomatic|
|00003090| 61 6c 6c 79 20 72 65 67 | 69 73 74 65 72 20 6d 65 |ally reg|ister me|
|000030a0| 6e 75 0d 09 09 63 6f 6d | 6d 61 6e 64 73 20 66 6f |nu...com|mands fo|
|000030b0| 75 6e 64 20 69 6e 20 43 | 4d 4e 55 20 72 65 73 6f |und in C|MNU reso|
|000030c0| 75 72 63 65 73 2e 0d 09 | 09 0d 20 20 20 20 57 69 |urces...|.. Wi|
|000030d0| 6e 64 6f 77 2e 68 2c 38 | 0d 20 20 20 20 57 69 6e |ndow.h,8|. Win|
|000030e0| 64 6f 77 2e 63 70 2c 31 | 34 0d 09 09 46 69 78 20 |dow.cp,1|4...Fix |
|000030f0| 74 68 65 20 d2 63 61 6c | 6c 69 6e 67 20 44 69 73 |the .cal|ling Dis|
|00003100| 70 6f 73 65 57 69 6e 64 | 6f 77 20 6f 6e 20 44 69 |poseWind|ow on Di|
|00003110| 61 6c 6f 67 50 74 72 d3 | 20 70 72 6f 62 6c 65 6d |alogPtr.| problem|
|00003120| 20 72 65 70 6f 72 74 65 | 64 20 62 79 20 47 61 72 | reporte|d by Gar|
|00003130| 79 20 50 6f 77 65 6c 6c | 20 40 20 41 64 6f 62 65 |y Powell| @ Adobe|
|00003140| 0d 09 09 62 79 20 61 64 | 64 69 6e 67 20 61 20 63 |...by ad|ding a c|
|00003150| 68 65 65 7a 79 20 66 6c | 61 67 20 74 68 61 74 20 |heezy fl|ag that |
|00003160| 4e 54 57 69 6e 64 6f 77 | 20 69 6e 69 74 69 61 6c |NTWindow| initial|
|00003170| 69 7a 65 73 2c 20 62 75 | 74 20 54 44 69 61 6c 6f |izes, bu|t TDialo|
|00003180| 67 57 69 6e 64 6f 77 20 | 73 6c 61 6d 73 2e 0d 09 |gWindow |slams...|
|00003190| 09 49 6e 20 54 57 69 6e | 64 6f 77 3a 3a 43 6c 6f |.In TWin|dow::Clo|
|000031a0| 73 65 2c 20 77 65 20 63 | 68 65 63 6b 20 74 68 69 |se, we c|heck thi|
|000031b0| 73 20 66 6c 61 67 20 61 | 6e 64 20 63 61 6c 6c 20 |s flag a|nd call |
|000031c0| 44 69 73 70 6f 73 65 44 | 69 61 6c 6f 67 20 69 6e |DisposeD|ialog in|
|000031d0| 73 74 65 61 64 20 6f 66 | 20 44 69 73 70 6f 73 65 |stead of| Dispose|
|000031e0| 57 69 6e 64 6f 77 2c 0d | 09 09 73 75 72 65 6c 79 |Window,.|..surely|
|000031f0| 20 70 72 65 76 65 6e 74 | 69 6e 67 20 6d 65 6d 6f | prevent|ing memo|
|00003200| 72 79 20 6c 65 61 6b 73 | 20 66 6f 72 20 63 6f 6d |ry leaks| for com|
|00003210| 70 6c 65 78 20 64 69 61 | 6c 6f 67 73 2e 0d 0d 20 |plex dia|logs... |
|00003220| 20 20 20 43 72 65 64 69 | 74 73 42 6f 78 2e 72 73 | Credi|tsBox.rs|
|00003230| 72 63 2c 33 0d 09 09 41 | 64 64 65 64 20 47 61 72 |rc,3...A|dded Gar|
|00003240| 79 20 50 6f 77 65 6c 6c | 20 26 20 4d 61 72 73 68 |y Powell| & Marsh|
|00003250| 61 6c 6c 20 43 6c 6f 77 | 0d 0d 09 53 70 72 6f 63 |all Clow|...Sproc|
|00003260| 6b 65 74 2e 72 73 72 63 | 2c 35 0d 09 09 62 75 6d |ket.rsrc|,5...bum|
|00003270| 70 65 64 20 27 76 65 72 | 73 27 20 28 32 29 20 74 |ped 'ver|s' (2) t|
|00003280| 6f 20 64 32 32 2e 0d 0d | 53 74 75 66 66 20 74 68 |o d22...|Stuff th|
|00003290| 61 74 20 77 61 73 20 63 | 68 65 63 6b 65 64 20 69 |at was c|hecked i|
|000032a0| 6e 2c 20 62 75 74 20 69 | 73 6e d5 74 20 72 65 61 |n, but i|sn.t rea|
|000032b0| 64 79 20 66 6f 72 20 70 | 72 69 6d 65 20 74 69 6d |dy for p|rime tim|
|000032c0| 65 3a 0d 0d 20 20 20 20 | 44 6f 63 75 6d 65 6e 74 |e:.. |Document|
|000032d0| 2e 63 70 2c 31 0d 20 20 | 20 20 44 6f 63 75 6d 65 |.cp,1. | Docume|
|000032e0| 6e 74 2e 68 2c 31 0d 20 | 20 20 20 45 78 63 65 70 |nt.h,1. | Excep|
|000032f0| 74 69 6f 6e 73 2e 63 70 | 2c 31 0d 20 20 20 20 45 |tions.cp|,1. E|
|00003300| 78 63 65 70 74 69 6f 6e | 73 2e 68 2c 31 0d 20 20 |xception|s.h,1. |
|00003310| 20 20 55 41 70 70 6c 65 | 4f 62 6a 65 63 74 2e 63 | UApple|Object.c|
|00003320| 70 2c 31 0d 20 20 20 20 | 55 41 70 70 6c 65 4f 62 |p,1. |UAppleOb|
|00003330| 6a 65 63 74 2e 68 2c 31 | 0d 0d 0d 0d 23 20 d1 d1 |ject.h,1|....# ..|
|00003340| d1 d1 d1 d1 d1 d1 d1 d1 | d1 d1 d1 d1 d1 d1 d1 d1 |........|........|
|00003350| d1 d1 d1 d1 d1 d1 d1 d1 | d1 d1 d1 d1 d1 d1 d1 d1 |........|........|
|00003360| d1 d1 d1 d1 d1 d1 d1 d1 | d1 d1 d1 d1 d1 d1 d1 d1 |........|........|
|00003370| d1 d1 d1 d1 d1 d1 d1 d1 | d1 d1 d1 d1 d1 d1 d1 d1 |........|........|
|00003380| d1 d1 d1 d1 d1 d1 0d 23 | 09 44 61 76 65 d5 73 20 |.......#|.Dave.s |
|00003390| 51 75 69 63 6b 20 61 6e | 64 20 44 69 72 74 79 20 |Quick an|d Dirty |
|000033a0| 52 65 6c 65 61 73 65 20 | 4e 6f 74 65 73 20 66 6f |Release |Notes fo|
|000033b0| 72 20 53 70 72 6f 63 6b | 65 74 39 35 aa 20 31 2f |r Sprock|et95. 1/|
|000033c0| 33 2f 39 35 0d 0d 23 09 | 09 44 79 6e 61 6d 69 63 |3/95..#.|.Dynamic|
|000033d0| 20 61 72 72 61 79 73 0d | 23 0d 23 09 09 41 64 64 | arrays.|#.#..Add|
|000033e0| 65 64 20 61 20 64 79 6e | 61 6d 69 63 20 61 72 72 |ed a dyn|amic arr|
|000033f0| 61 79 20 62 61 73 65 20 | 63 6c 61 73 73 20 66 6f |ay base |class fo|
|00003400| 72 20 65 66 66 69 63 69 | 65 6e 74 20 63 6f 6c 6c |r effici|ent coll|
|00003410| 65 63 74 69 6f 6e 73 0d | 23 09 09 6f 66 20 6f 62 |ections.|#..of ob|
|00003420| 6a 65 63 74 20 72 65 66 | 65 72 65 6e 63 65 73 2e |ject ref|erences.|
|00003430| 20 41 6c 73 6f 20 61 64 | 64 65 64 20 61 20 73 6f | Also ad|ded a so|
|00003440| 72 74 65 64 20 64 79 6e | 61 6d 69 63 20 61 72 72 |rted dyn|amic arr|
|00003450| 61 79 0d 23 09 09 63 6c | 61 73 73 20 77 68 69 63 |ay.#..cl|ass whic|
|00003460| 68 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 74 6f |h can be| used to|
|00003470| 20 6b 65 65 70 20 61 20 | 73 6f 72 74 65 64 20 6c | keep a |sorted l|
|00003480| 69 73 74 2e 0d 0d 3a 53 | 70 72 6f 63 6b 65 74 3a |ist...:S|procket:|
|00003490| 49 6e 74 65 72 66 61 63 | 65 73 3a 44 79 6e 61 6d |Interfac|es:Dynam|
|000034a0| 69 63 41 72 72 61 79 2e | 68 2c 31 0d 3a 53 70 72 |icArray.|h,1.:Spr|
|000034b0| 6f 63 6b 65 74 3a 4c 69 | 62 3a 44 79 6e 61 6d 69 |ocket:Li|b:Dynami|
|000034c0| 63 41 72 72 61 79 2e 63 | 70 2c 31 0d 3a 53 70 72 |cArray.c|p,1.:Spr|
|000034d0| 6f 63 6b 65 74 3a 49 6e | 74 65 72 66 61 63 65 73 |ocket:In|terfaces|
|000034e0| 3a 53 6f 72 74 65 64 44 | 79 6e 61 6d 69 63 41 72 |:SortedD|ynamicAr|
|000034f0| 72 61 79 2e 68 2c 31 0d | 3a 53 70 72 6f 63 6b 65 |ray.h,1.|:Sprocke|
|00003500| 74 3a 4c 69 62 3a 53 6f | 72 74 65 64 44 79 6e 61 |t:Lib:So|rtedDyna|
|00003510| 6d 69 63 41 72 72 61 79 | 2e 63 70 2c 31 0d 0d 0d |micArray|.cp,1...|
|00003520| 23 09 09 4d 65 6e 75 20 | 63 6f 6d 6d 61 6e 64 20 |#..Menu |command |
|00003530| 68 61 6e 64 6c 69 6e 67 | 20 61 6c 61 20 4f 70 65 |handling| ala Ope|
|00003540| 6e 44 6f 63 aa 0d 23 09 | 09 28 4e 4f 54 45 3a 20 |nDoc..#.|.(NOTE: |
|00003550| 54 68 69 73 20 77 69 6c | 6c 20 62 65 20 61 63 63 |This wil|l be acc|
|00003560| 6f 6d 70 61 6e 69 65 64 | 20 62 79 20 61 6e 20 75 |ompanied| by an u|
|00003570| 70 63 6f 6d 69 6e 67 20 | 61 72 74 69 63 6c 65 29 |pcoming |article)|
|00003580| 0d 23 0d 23 09 09 41 20 | 62 61 73 69 63 20 63 6c |.#.#..A |basic cl|
|00003590| 61 73 73 20 66 6f 72 20 | 6d 61 69 6e 74 61 69 6e |ass for |maintain|
|000035a0| 67 20 74 68 65 20 73 74 | 61 74 65 20 6f 66 20 74 |g the st|ate of t|
|000035b0| 68 65 20 6d 65 6e 75 20 | 62 61 72 20 69 73 0d 23 |he menu |bar is.#|
|000035c0| 09 09 61 6e 6f 74 68 65 | 72 20 77 6f 72 6b 20 69 |..anothe|r work i|
|000035d0| 6e 20 70 72 6f 67 72 65 | 73 73 20 66 6f 72 20 61 |n progre|ss for a|
|000035e0| 6e 20 75 70 63 6f 6d 69 | 6e 67 20 61 72 74 69 63 |n upcomi|ng artic|
|000035f0| 6c 65 2e 20 54 4d 65 6e | 75 42 61 72 0d 23 09 09 |le. TMen|uBar.#..|
|00003600| 6d 61 69 6e 74 61 69 6e | 73 20 3c 6d 65 6e 75 2c |maintain|s <menu,|
|00003610| 69 74 65 6d 3e 20 3c 2d | 3e 20 3c 63 6f 6d 6d 61 |item> <-|> <comma|
|00003620| 6e 64 3e 20 6d 61 70 70 | 69 6e 67 73 20 66 6f 72 |nd> mapp|ings for|
|00003630| 20 69 74 65 6d 73 0d 23 | 09 09 69 6e 20 74 68 65 | items.#|..in the|
|00003640| 20 6d 65 6e 75 20 62 61 | 72 2e 20 54 68 65 20 6d | menu ba|r. The m|
|00003650| 65 74 68 6f 64 73 20 66 | 6f 72 20 54 4d 65 6e 75 |ethods f|or TMenu|
|00003660| 42 61 72 20 64 65 6c 69 | 62 65 72 61 74 65 6c 79 |Bar deli|berately|
|00003670| 0d 23 09 09 72 65 73 65 | 6d 62 6c 65 20 74 68 6f |.#..rese|mble tho|
|00003680| 73 65 20 6f 66 20 4f 70 | 65 6e 44 6f 63 d5 73 20 |se of Op|enDoc.s |
|00003690| 4f 44 4d 65 6e 75 42 61 | 72 2e 0d 23 0d 23 09 09 |ODMenuBa|r..#.#..|
|000036a0| 55 6e 6c 69 6b 65 20 4f | 70 65 6e 44 6f 63 2c 20 |Unlike O|penDoc, |
|000036b0| 74 68 65 72 65 20 69 73 | 20 6f 6e 6c 79 20 61 20 |there is| only a |
|000036c0| 73 69 6e 67 6c 65 2c 20 | 67 6c 6f 62 61 6c 20 6d |single, |global m|
|000036d0| 65 6e 75 62 61 72 0d 23 | 09 09 73 75 70 70 6f 72 |enubar.#|..suppor|
|000036e0| 74 65 64 2e 20 54 68 69 | 73 20 4d 41 59 20 63 68 |ted. Thi|s MAY ch|
|000036f0| 61 6e 67 65 20 77 68 65 | 6e 20 77 65 20 64 65 63 |ange whe|n we dec|
|00003700| 69 64 65 20 74 6f 20 73 | 75 70 70 6f 72 74 20 70 |ide to s|upport p|
|00003710| 6c 75 67 2d 69 6e 73 0d | 23 09 09 61 6e 64 2f 6f |lug-ins.|#..and/o|
|00003720| 72 20 65 6d 62 65 64 64 | 69 6e 67 20 6f 66 20 4f |r embedd|ing of O|
|00003730| 70 65 6e 44 6f 63 20 70 | 61 72 74 73 2e 0d 23 0d |penDoc p|arts..#.|
|00003740| 23 09 09 53 75 70 70 6f | 72 74 20 66 6f 72 20 62 |#..Suppo|rt for b|
|00003750| 75 69 6c 64 69 6e 67 20 | 61 20 54 4d 65 6e 75 42 |uilding |a TMenuB|
|00003760| 61 72 20 66 72 6f 6d 20 | 61 6e 20 4d 42 41 52 20 |ar from |an MBAR |
|00003770| 61 6e 64 20 28 4d 45 4e | 55 20 6f 72 20 43 4d 4e |and (MEN|U or CMN|
|00003780| 55 29 0d 23 09 09 72 65 | 73 6f 75 72 63 65 73 20 |U).#..re|sources |
|00003790| 68 61 73 20 79 65 74 20 | 74 6f 20 62 65 20 77 72 |has yet |to be wr|
|000037a0| 69 74 74 65 6e 2c 20 73 | 6f 20 63 6f 6d 6d 61 6e |itten, s|o comman|
|000037b0| 64 73 20 6d 75 73 74 20 | 62 65 20 6d 61 6e 75 61 |ds must |be manua|
|000037c0| 6c 6c 79 0d 23 09 09 72 | 65 67 69 73 74 65 72 65 |lly.#..r|egistere|
|000037d0| 64 20 76 69 61 20 74 68 | 65 20 52 65 67 69 73 74 |d via th|e Regist|
|000037e0| 65 72 43 6f 6d 6d 61 6e | 64 20 6d 65 74 68 6f 64 |erComman|d method|
|000037f0| 2e 0d 0d 3a 53 70 72 6f | 63 6b 65 74 3a 49 6e 74 |...:Spro|cket:Int|
|00003800| 65 72 66 61 63 65 73 3a | 4d 65 6e 75 42 61 72 2e |erfaces:|MenuBar.|
|00003810| 68 2c 31 0d 3a 53 70 72 | 6f 63 6b 65 74 3a 4c 69 |h,1.:Spr|ocket:Li|
|00003820| 62 3a 4d 65 6e 75 42 61 | 72 2e 63 70 2c 31 0d 0d |b:MenuBa|r.cp,1..|
|00003830| 0d 23 09 09 52 75 64 69 | 6d 65 6e 74 61 72 79 20 |.#..Rudi|mentary |
|00003840| 64 6f 63 75 6d 65 6e 74 | 20 73 75 70 70 6f 72 74 |document| support|
|00003850| 0d 23 0d 23 09 09 4e 4f | 54 45 3a 20 54 68 69 73 |.#.#..NO|TE: This|
|00003860| 20 77 69 6c 6c 20 62 65 | 20 61 63 63 6f 6d 70 61 | will be| accompa|
|00003870| 6e 69 65 64 20 62 79 20 | 61 6e 20 75 70 63 6f 6d |nied by |an upcom|
|00003880| 69 6e 67 20 61 72 74 69 | 63 6c 65 0d 23 0d 23 09 |ing arti|cle.#.#.|
|00003890| 09 4e 4f 54 45 3a 20 54 | 68 69 73 20 73 74 75 66 |.NOTE: T|his stuf|
|000038a0| 66 20 69 73 20 70 6f 74 | 65 6e 74 69 61 6c 6c 79 |f is pot|entially|
|000038b0| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 2a 62 6f 67 | complet|ely *bog|
|000038c0| 75 73 2a 20 61 6e 64 20 | 69 73 0d 23 09 09 09 09 |us* and |is.#....|
|000038d0| 73 75 62 6a 65 63 74 20 | 74 6f 20 6d 61 73 73 69 |subject |to massi|
|000038e0| 76 65 20 63 68 61 6e 67 | 65 73 20 69 6e 20 74 68 |ve chang|es in th|
|000038f0| 65 20 66 75 74 75 72 65 | 2e 0d 23 0d 23 09 09 49 |e future|..#.#..I|
|00003900| 6e 20 6f 72 64 65 72 20 | 74 6f 20 62 65 74 74 65 |n order |to bette|
|00003910| 72 20 73 75 70 70 6f 72 | 74 20 74 68 69 6e 67 73 |r suppor|t things|
|00003920| 20 6c 69 6b 65 20 73 61 | 76 69 6e 67 20 61 6e 64 | like sa|ving and|
|00003930| 20 70 72 69 6e 74 69 6e | 67 0d 23 09 09 69 6e 20 | printin|g.#..in |
|00003940| 74 68 65 20 66 75 74 75 | 72 65 2c 20 49 d5 6d 20 |the futu|re, I.m |
|00003950| 77 6f 72 6b 69 6e 67 20 | 6f 6e 20 61 20 54 44 6f |working |on a TDo|
|00003960| 63 75 6d 65 6e 74 20 63 | 6c 61 73 73 2e 20 54 68 |cument c|lass. Th|
|00003970| 69 6e 67 73 20 6c 69 6b | 65 0d 23 09 09 61 20 73 |ings lik|e.#..a s|
|00003980| 74 61 6e 64 61 72 64 20 | 63 6c 6f 73 65 20 6f 70 |tandard |close op|
|00003990| 74 69 6f 6e 73 20 64 69 | 61 6c 6f 67 2c 20 61 20 |tions di|alog, a |
|000039a0| 47 58 2d 73 61 76 76 79 | 20 70 72 69 6e 74 20 6c |GX-savvy| print l|
|000039b0| 6f 6f 70 2c 20 65 74 63 | 2e 0d 23 09 09 77 69 6c |oop, etc|..#..wil|
|000039c0| 6c 20 65 76 65 6e 74 75 | 61 6c 6c 79 20 67 6f 20 |l eventu|ally go |
|000039d0| 68 65 72 65 2e 20 54 68 | 65 72 65 20 69 73 20 61 |here. Th|ere is a|
|000039e0| 6c 73 6f 20 61 20 54 44 | 6f 63 57 69 6e 64 6f 77 |lso a TD|ocWindow|
|000039f0| 20 63 6c 61 73 73 0d 23 | 09 09 66 6f 72 20 6c 69 | class.#|..for li|
|00003a00| 6e 6b 69 6e 67 20 61 20 | 77 69 6e 64 6f 77 20 74 |nking a |window t|
|00003a10| 6f 20 61 20 67 69 76 65 | 6e 20 54 44 6f 63 75 6d |o a give|n TDocum|
|00003a20| 65 6e 74 2e 0d 0d 3a 53 | 70 72 6f 63 6b 65 74 3a |ent...:S|procket:|
|00003a30| 49 6e 74 65 72 66 61 63 | 65 73 3a 44 6f 63 75 6d |Interfac|es:Docum|
|00003a40| 65 6e 74 2e 68 2c 31 0d | 3a 53 70 72 6f 63 6b 65 |ent.h,1.|:Sprocke|
|00003a50| 74 3a 4c 69 62 3a 44 6f | 63 75 6d 65 6e 74 2e 63 |t:Lib:Do|cument.c|
|00003a60| 70 2c 31 0d 3a 53 70 72 | 6f 63 6b 65 74 3a 49 6e |p,1.:Spr|ocket:In|
|00003a70| 74 65 72 66 61 63 65 73 | 3a 44 6f 63 57 69 6e 64 |terfaces|:DocWind|
|00003a80| 6f 77 2e 68 2c 31 0d 3a | 53 70 72 6f 63 6b 65 74 |ow.h,1.:|Sprocket|
|00003a90| 3a 4c 69 62 3a 44 6f 63 | 57 69 6e 64 6f 77 2e 63 |:Lib:Doc|Window.c|
|00003aa0| 70 2c 31 0d 0d 0d 23 09 | 47 65 6e 65 72 61 6c 20 |p,1...#.|General |
|00003ab0| 6d 61 69 6e 74 65 6e 61 | 6e 63 65 0d 0d 23 09 09 |maintena|nce..#..|
|00003ac0| 53 6f 6d 65 20 63 68 61 | 6e 67 65 73 20 77 65 72 |Some cha|nges wer|
|00003ad0| 65 20 6d 61 64 65 20 69 | 6e 20 6f 72 64 65 72 20 |e made i|n order |
|00003ae0| 74 6f 20 61 64 61 70 74 | 20 74 6f 20 74 68 65 20 |to adapt| to the |
|00003af0| 6e 65 77 20 6d 65 6e 75 | 0d 23 09 09 63 6f 6d 6d |new menu|.#..comm|
|00003b00| 61 6e 64 20 73 63 68 65 | 6d 65 3a 0d 23 0d 23 09 |and sche|me:.#.#.|
|00003b10| 09 54 57 69 6e 64 6f 77 | d5 73 20 44 6f 4d 65 6e |.TWindow|.s DoMen|
|00003b20| 75 43 6f 6d 6d 61 6e 64 | 20 61 6e 64 20 41 64 6a |uCommand| and Adj|
|00003b30| 75 73 74 4d 65 6e 75 73 | 42 65 66 6f 72 65 4d 65 |ustMenus|BeforeMe|
|00003b40| 6e 75 53 65 6c 65 63 74 | 69 6f 6e 20 6d 65 74 68 |nuSelect|ion meth|
|00003b50| 6f 64 73 0d 23 09 09 73 | 68 6f 75 6c 64 20 6e 6f |ods.#..s|hould no|
|00003b60| 77 20 77 6f 72 6b 20 70 | 72 6f 70 65 72 6c 79 2c |w work p|roperly,|
|00003b70| 20 70 72 6f 76 69 64 69 | 6e 67 20 73 69 6d 70 6c | providi|ng simpl|
|00003b80| 65 72 20 6d 65 6e 75 20 | 68 61 6e 64 6c 69 6e 67 |er menu |handling|
|00003b90| 2e 0d 23 0d 23 09 09 41 | 70 70 6c 69 63 61 74 69 |..#.#..A|pplicati|
|00003ba0| 6f 6e 73 20 63 61 6e 20 | 70 72 6f 76 69 64 65 20 |ons can |provide |
|00003bb0| 61 20 48 61 6e 64 6c 65 | 4d 65 6e 75 43 6f 6d 6d |a Handle|MenuComm|
|00003bc0| 61 6e 64 20 70 72 6f 63 | 65 64 75 72 65 20 74 6f |and proc|edure to|
|00003bd0| 20 68 61 6e 64 6c 65 0d | 23 09 09 6e 6f 6e 2d 77 | handle.|#..non-w|
|00003be0| 69 6e 64 6f 77 20 73 70 | 65 63 69 66 69 63 20 63 |indow sp|ecific c|
|00003bf0| 6f 6d 6d 61 6e 64 73 2e | 20 54 68 69 73 20 70 72 |ommands.| This pr|
|00003c00| 6f 63 65 64 75 72 65 20 | 64 6f 65 73 6e d5 74 20 |ocedure |doesn.t |
|00003c10| 6e 65 65 64 20 74 6f 20 | 64 6f 0d 23 09 09 61 6e |need to |do.#..an|
|00003c20| 79 74 68 69 6e 67 2e 0d | 23 0d 23 09 09 41 70 70 |ything..|#.#..App|
|00003c30| 6c 69 63 61 74 69 6f 6e | 73 20 6d 75 73 74 20 61 |lication|s must a|
|00003c40| 6c 73 6f 20 72 65 67 69 | 73 74 65 72 20 61 20 71 |lso regi|ster a q|
|00003c50| 75 69 74 20 63 6f 6d 6d | 61 6e 64 20 73 6f 20 74 |uit comm|and so t|
|00003c60| 68 65 79 20 77 69 6c 6c | 20 62 65 0d 23 09 09 70 |hey will| be.#..p|
|00003c70| 72 6f 70 65 72 6c 79 20 | 74 65 72 6d 69 6e 61 74 |roperly |terminat|
|00003c80| 65 64 2e 20 28 4e 4f 54 | 45 3a 20 54 68 65 72 65 |ed. (NOT|E: There|
|00003c90| 20 69 73 20 6e 6f 20 6e | 65 65 64 20 74 6f 20 68 | is no n|eed to h|
|00003ca0| 61 6e 64 6c 65 20 51 75 | 69 74 20 77 69 74 68 69 |andle Qu|it withi|
|00003cb0| 6e 0d 23 09 09 74 68 65 | 20 48 61 6e 64 6c 65 4d |n.#..the| HandleM|
|00003cc0| 65 6e 75 43 6f 6d 6d 61 | 6e 64 20 70 72 6f 63 65 |enuComma|nd proce|
|00003cd0| 64 75 72 65 29 0d 0d 23 | 09 09 46 69 78 65 64 20 |dure)..#|..Fixed |
|00003ce0| 61 20 62 75 67 20 69 6e | 20 54 53 70 6c 61 73 68 |a bug in| TSplash|
|00003cf0| 57 69 6e 64 6f 77 20 77 | 68 69 63 68 20 63 72 65 |Window w|hich cre|
|00003d00| 61 74 65 64 20 61 20 73 | 74 75 70 69 64 20 6d 69 |ated a s|tupid mi|
|00003d10| 6e 61 74 75 72 65 20 77 | 69 6e 64 6f 77 0d 23 09 |nature w|indow.#.|
|00003d20| 09 65 76 65 6e 20 69 66 | 20 77 65 20 64 69 64 6e |.even if| we didn|
|00003d30| d5 74 20 68 61 76 65 20 | 61 20 73 70 6c 61 73 68 |.t have |a splash|
|00003d40| 20 73 63 72 65 65 6e 20 | 50 49 43 54 2e 0d 0d 23 | screen |PICT...#|
|00003d50| 09 09 57 65 20 61 6c 73 | 6f 20 61 64 64 65 64 20 |..We als|o added |
|00003d60| 73 6f 6d 65 20 63 6f 6f | 6c 20 64 72 61 67 20 6d |some coo|l drag m|
|00003d70| 61 6e 61 67 65 72 20 75 | 74 69 6c 69 74 69 65 73 |anager u|tilities|
|00003d80| 20 61 6e 64 20 54 57 69 | 6e 64 6f 77 20 6d 65 74 | and TWi|ndow met|
|00003d90| 68 6f 64 73 0d 23 09 09 | 66 72 6f 6d 20 4e 69 74 |hods.#..|from Nit|
|00003da0| 69 6e 20 47 61 6e 61 74 | 72 61 20 61 75 74 68 6f |in Ganat|ra autho|
|00003db0| 72 20 6f 66 20 4d 61 6c | 70 68 2c 20 61 20 77 61 |r of Mal|ph, a wa|
|00003dc0| 79 2d 63 6f 6f 6c 20 75 | 74 69 6c 69 74 79 2e 0d |y-cool u|tility..|
|00003dd0| 0d 3a 53 70 72 6f 63 6b | 65 74 3a 49 6e 74 65 72 |.:Sprock|et:Inter|
|00003de0| 66 61 63 65 73 3a 57 69 | 6e 64 6f 77 2e 68 2c 35 |faces:Wi|ndow.h,5|
|00003df0| 0d 3a 53 70 72 6f 63 6b | 65 74 3a 49 6e 74 65 72 |.:Sprock|et:Inter|
|00003e00| 66 61 63 65 73 3a 53 70 | 72 6f 63 6b 65 74 2e 68 |faces:Sp|rocket.h|
|00003e10| 2c 39 0d 3a 53 70 72 6f | 63 6b 65 74 3a 4c 69 62 |,9.:Spro|cket:Lib|
|00003e20| 3a 44 69 61 6c 6f 67 55 | 74 69 6c 73 2e 63 70 2c |:DialogU|tils.cp,|
|00003e30| 37 0d 3a 53 70 72 6f 63 | 6b 65 74 3a 4c 69 62 3a |7.:Sproc|ket:Lib:|
|00003e40| 44 72 61 67 55 74 69 6c | 73 2e 63 70 2c 33 0d 3a |DragUtil|s.cp,3.:|
|00003e50| 53 70 72 6f 63 6b 65 74 | 3a 4c 69 62 3a 53 70 6c |Sprocket|:Lib:Spl|
|00003e60| 61 73 68 57 69 6e 64 6f | 77 2e 63 70 2c 37 0d 3a |ashWindo|w.cp,7.:|
|00003e70| 53 70 72 6f 63 6b 65 74 | 3a 4c 69 62 3a 53 70 72 |Sprocket|:Lib:Spr|
|00003e80| 6f 63 6b 65 74 4d 61 69 | 6e 2e 63 70 2c 31 35 0d |ocketMai|n.cp,15.|
|00003e90| 3a 53 70 72 6f 63 6b 65 | 74 3a 4c 69 62 3a 57 69 |:Sprocke|t:Lib:Wi|
|00003ea0| 6e 64 6f 77 2e 68 2c 36 | 0d 3a 53 70 72 6f 63 6b |ndow.h,6|.:Sprock|
|00003eb0| 65 74 3a 4c 69 62 3a 57 | 69 6e 64 6f 77 2e 63 70 |et:Lib:W|indow.cp|
|00003ec0| 2c 31 32 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |,12.....|........|
|00003ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f00| 00 00 01 00 00 00 01 fa | 00 00 00 fa 00 00 00 70 |........|.......p|
|00003f10| 72 22 6d fc 76 23 48 00 | 0c 26 54 30 13 08 00 00 |r"m.v#H.|.&T0....|
|00003f20| 00 67 08 3b 7c 00 28 fc | 58 60 06 3b 7c 00 04 fc |.g.;|.(.|X`.;|...|
|00003f30| 0d 52 65 6c 65 61 73 65 | 20 4e 6f 74 65 73 02 00 |.Release| Notes..|
|00003f40| 00 00 54 45 58 54 4d 4d | 43 43 01 00 00 68 00 40 |..TEXTMM|CC...h.@|
|00003f50| 00 00 54 45 58 54 4d 4d | 43 43 01 00 00 68 00 40 |..TEXTMM|CC...h.@|
|00003f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f70| 00 00 ab 2f 4d 5a 00 00 | 3e 44 00 00 02 6a c7 4e |.../MZ..|>D...j.N|
|00003f80| 93 30 2d fc 5a 52 6d fc | 5a 30 2d fc 5a 48 c0 bc |.0-.ZRm.|Z0-.ZH..|
|00003f90| 80 6e c0 20 0b 67 04 2f | 0b a9 f1 2f 0c a9 a3 4c |.n. .g./|.../...L|
|00003fa0| ee 18 c0 ff ec 4e 5e 4e | 75 8b 5f 5f 43 70 6c 75 |.....N^N|u.__Cplu|
|00003fb0| 73 49 6e 69 74 00 2a 28 | 25 5f 53 74 61 74 69 63 |sInit.*(|%_Static|
|00003fc0| 5f 43 6f 6e 73 74 72 75 | 63 74 6f 72 5f 44 65 73 |_Constru|ctor_Des|
|00003fd0| 74 72 75 63 74 6f 72 5f | 50 6f 69 6e 74 65 72 73 |tructor_|Pointers|
|00003fe0| 00 4e 56 ff fc 48 e7 01 | 18 4a 6d fc 5a 67 64 59 |.NV..H..|.Jm.ZgdY|
|00003ff0| 8f 2f 3c 43 4f 44 45 48 | 7a 00 70 a9 a1 28 5f 20 |./<CODEH|z.p..(_ |
|00004000| 00 00 00 1e 00 2a 00 04 | 03 57 02 00 00 3e 00 04 |.....*..|.W...>..|
|00004010| 01 7d 02 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}.c....|........|
|00004020| 00 00 00 00 00 80 1e f3 | 82 45 3f e5 32 30 00 04 |........|.E?.20..|
|00004030| 00 00 00 00 00 00 00 00 | ab 4b 04 57 ab 4b 04 4c |........|.K.W.K.L|
|00004040| aa c8 81 3a 00 00 3e 2d | 00 01 00 04 00 02 16 53 |...:..>-|.......S|
|00004050| 70 72 6f 63 6b 65 74 50 | 72 6f 6a ba 53 70 72 6f |procketP|roj.Spro|
|00004060| 63 6b 65 74 ba 00 0f 44 | 61 76 65 20 46 61 6c 6b |cket...D|ave Falk|
|00004070| 65 6e 62 75 72 67 00 01 | 32 00 0d 52 65 6c 65 61 |enburg..|2..Relea|
|00004080| 73 65 20 4e 6f 74 65 73 | 00 00 00 00 18 76 65 72 |se Notes|.....ver|
|00004090| 73 69 6f 6e 20 31 2e 30 | 64 32 33 20 28 31 2f 32 |sion 1.0|d23 (1/2|
|000040a0| 34 2f 39 35 29 00 00 00 | 00 48 00 09 4d 6f 6e 61 |4/95)...|.H..Mona|
|000040b0| 63 6f 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |co......|........|
|000040c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 03 00 04 |........|........|
|000040d0| 00 58 00 04 01 cd 02 63 | 00 58 00 04 01 cd 02 63 |.X.....c|.X.....c|
|000040e0| ac b1 b8 79 00 00 00 00 | 00 00 00 00 00 00 00 00 |...y....|........|
|000040f0| 01 00 00 00 00 04 00 01 | 00 00 00 00 01 00 00 00 |........|........|
|00004100| 01 fa 00 00 00 fa 00 00 | 00 70 00 d9 7a 38 0f cc |........|.p..z8..|
|00004110| 00 00 00 1c 00 66 00 02 | 4d 50 53 52 00 01 00 1a |.....f..|MPSR....|
|00004120| 63 6b 69 64 00 00 00 32 | 4d 57 42 42 00 00 00 3e |ckid...2|MWBB...>|
|00004130| 03 f0 ff ff 00 00 00 00 | 00 00 00 00 03 ed ff ff |........|........|
|00004140| 00 00 00 a6 00 00 00 00 | 00 80 00 00 00 00 00 22 |........|......."|
|00004150| 00 00 00 00 03 f0 ff ff | 00 00 00 f2 00 00 00 00 |........|........|
|00004160| 09 50 72 6f 6a 65 63 74 | 6f 72 00 00 00 00 00 00 |.Project|or......|
|00004170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+